afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
afuna ([personal profile] afuna) wrote in [site community profile] changelog2009-05-12 04:46 pm

[dw-free] admin index page says admin:capedit can be used, but it can't

[commit: http://hg.dwscoalition.org/dw-free/rev/59b1b53443b0]

http://bugs.dwscoalition.org/show_bug.cgi?id=1208

Fix priv display documentation

Patch by [personal profile] sophie.

Files modified:
  • htdocs/admin/capedit.bml
  • htdocs/admin/index.bml
--------------------------------------------------------------------------------
diff -r fe648cd290d3 -r 59b1b53443b0 htdocs/admin/capedit.bml
--- a/htdocs/admin/capedit.bml	Tue May 12 16:07:46 2009 +0000
+++ b/htdocs/admin/capedit.bml	Tue May 12 16:45:28 2009 +0000
@@ -7,7 +7,7 @@
  my $mode = $FORM{'mode'};
 
  my $remote = LJ::get_remote();
- my @display_privs = ( "admin:capedit", "admin:*" );
+ my @display_privs = ( "admin:*" );
  my $numprivs = @display_privs;
 
  return "<?needlogin?>" unless $remote;
diff -r fe648cd290d3 -r 59b1b53443b0 htdocs/admin/index.bml
--- a/htdocs/admin/index.bml	Tue May 12 16:07:46 2009 +0000
+++ b/htdocs/admin/index.bml	Tue May 12 16:45:28 2009 +0000
@@ -34,7 +34,7 @@ body<=
 
     my @adminpages = (
         [ 'capedit.bml',
-            '<?_ml .admin.capability.link _ml?>', '<?_ml .admin.capability.text _ml?>', [ 'admin:capedit', 'admin:*', sub {
+            '<?_ml .admin.capability.link _ml?>', '<?_ml .admin.capability.text _ml?>', [ 'admin:*', sub {
                 return ( $LJ::IS_DEV_SERVER, "<?_ml .devserver _ml?>" );
             } ] ],
         [ 'clusterstatus.bml',
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
No Subject Icon Selected
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org