Index: trunk/phase3/includes/User.php |
— | — | @@ -1118,6 +1118,10 @@ |
1119 | 1119 | * @return boolean True: action is allowed, False: action should not be allowed |
1120 | 1120 | */ |
1121 | 1121 | function isAllowed($action='') { |
| 1122 | + if ( $action === '' ) |
| 1123 | + // In the spirit of DWIM |
| 1124 | + return true; |
| 1125 | + |
1122 | 1126 | $this->loadFromDatabase(); |
1123 | 1127 | return in_array( $action , $this->mRights ); |
1124 | 1128 | } |