Index: trunk/extensions/SemanticForms/specials/SF_UploadWindow2.php |
— | — | @@ -112,7 +112,7 @@ |
113 | 113 | * @param User $user |
114 | 114 | * @return bool |
115 | 115 | */ |
116 | | - public function userCanExecute( $user ) { |
| 116 | + public function userCanExecute( User $user ) { |
117 | 117 | return UploadBase::isEnabled() && parent::userCanExecute( $user ); |
118 | 118 | } |
119 | 119 | |
Index: trunk/extensions/SharedUserRights/SharedUserRights_body.php |
— | — | @@ -25,7 +25,7 @@ |
26 | 26 | return true; |
27 | 27 | } |
28 | 28 | |
29 | | - public function userCanExecute( $user ) { |
| 29 | + public function userCanExecute( User $user ) { |
30 | 30 | return $user->isAllowed( 'userrights-shared' ); |
31 | 31 | } |
32 | 32 | |