]> git.imager.perl.org - bse.git/commitdiff
added some debugging output to the ifUserCan tag handler
authorTony Cook <tony@develop-help.com>
Thu, 1 Dec 2005 02:27:10 +0000 (02:27 +0000)
committertony <tony@45cb6cf1-00bc-42d2-bb5a-07f51df49f94>
Thu, 1 Dec 2005 02:27:10 +0000 (02:27 +0000)
site/cgi-bin/modules/BSE/Util/Tags.pm
site/docs/bse.pod
site/docs/config.pod

index 1a9fb3fcdfc9ca7baf388513c99914083a406d06..a851de0472d9037db77c54e8b7518d4e9ee59c4f 100644 (file)
@@ -631,9 +631,14 @@ my %dummy_site_article =
 sub tag_if_user_can {
   my ($req, $rperms, $args, $acts, $funcname, $templater) = @_;
 
+  my $debug = $req->cfg->entry('debug', 'ifUserCan', 0);
+  $debug 
+    and print STDERR "Handling ifUserCan $args:\n";
   my @checks = split /,/, $args;
   for my $check (@checks) {
     my ($perm, $artname) = split /:/, $check, 2;
+    $debug 
+      and print STDERR "  Perm: '$perm'\n";
     my $article;
     if ($artname) {
       if ($artname =~ /^\[/) {
index 414a78ecf0f20557d0f174348668b0128586ab3a..30f8d3571d1dbbf440be694cbd6283263dd5e2ac 100644 (file)
@@ -42,6 +42,10 @@ have bse_I<permission> permission non-rights checks (eg. checking for
 no children on edit_delete_article) do the same checks as for
 I<permission>
 
+=item *
+
+added some debugging output to the ifUserCan tag handler
+
 =back
 
 =head2 0.15_30
index 755d36b861a5d82267cf298dd96da0c65f191040..9e76df7cf28f2b7ab48c2a99e8e24a7664c730f9 100644 (file)
@@ -704,6 +704,11 @@ STDERR.
 If non-zero then information about jit_dynamic_regen is sent to
 STDERR.
 
+=item ifUserCan
+
+If non-zero then the ifUserCan tag will output some trace information
+to STDERR.
+
 =back
 
 =head2 [uri]