Index: trunk/phase3/includes/specials/SpecialUserrights.php |
— | — | @@ -65,14 +65,15 @@ |
66 | 66 | return; |
67 | 67 | } |
68 | 68 | |
| 69 | + $available = $this->changeableGroups(); |
| 70 | + |
69 | 71 | if ( !$this->mTarget ) { |
70 | 72 | /* |
71 | 73 | * If the user specified no target, and they can only |
72 | 74 | * edit their own groups, automatically set them as the |
73 | 75 | * target. |
74 | 76 | */ |
75 | | - $available = $this->changeableGroups(); |
76 | | - if ( empty( $available['add'] ) && empty( $available['remove'] ) ) |
| 77 | + if ( !count( $available['add'] ) && !count( $available['remove'] ) ) |
77 | 78 | $this->mTarget = $wgUser->getName(); |
78 | 79 | } |
79 | 80 | |
— | — | @@ -100,7 +101,8 @@ |
101 | 102 | $this->setHeaders(); |
102 | 103 | |
103 | 104 | // show the general form |
104 | | - $this->switchForm(); |
| 105 | + if ( count( $available['add'] ) || count( $available['remove'] ) ) |
| 106 | + $this->switchForm(); |
105 | 107 | |
106 | 108 | if( $wgRequest->wasPosted() ) { |
107 | 109 | // save settings |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -730,7 +730,10 @@ |
731 | 731 | * (bug 21870) No longer include Google logo from an external server on wiki error. |
732 | 732 | * (bug 22181) Do not truncate if the ellipsis actually make the string longer |
733 | 733 | * (bug 16039) Text disappearing after a bad image |
734 | | -* (bug 18784) Internal links like [[File:Foo|caption]] should read 'caption', not 'File:Foo' when Foo is not an image |
| 734 | +* (bug 18784) Internal links like [[File:Foo|caption]] should read 'caption', |
| 735 | + not 'File:Foo' when Foo is not an image |
| 736 | +* (bug 21518) Special:UserRights no longer displays the user name box for users |
| 737 | + that can only change their rights |
735 | 738 | |
736 | 739 | == API changes in 1.16 == |
737 | 740 | |