svn: /web/doc-editor/trunk/js/ui/component/ PendingPatchGrid.js

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
yannick                                  Sun, 29 Nov 2009 12:47:20 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=291419

Log:
Disable reject patch sub-menu for anonymous user

Changed paths:
    U   web/doc-editor/trunk/js/ui/component/PendingPatchGrid.js

Modified: web/doc-editor/trunk/js/ui/component/PendingPatchGrid.js
===================================================================
--- web/doc-editor/trunk/js/ui/component/PendingPatchGrid.js	2009-11-29 12:43:45 UTC (rev 291418)
+++ web/doc-editor/trunk/js/ui/component/PendingPatchGrid.js	2009-11-29 12:47:20 UTC (rev 291419)
@@ -111,6 +111,7 @@
             }, '-', {
                 scope   : this,
                 text    : _('Reject this patch'),
+                disabled : (phpDoc.userLogin === 'anonymous'),
                 iconCls : 'iconPageDelete',
                 handler : function()
                 {
@@ -310,4 +311,4 @@
         ui.component._PendingPatchGrid.instance = new ui.component.PendingPatchGrid(config);
     }
     return ui.component._PendingPatchGrid.instance;
-};
\ No newline at end of file
+};
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.