Merge pull request #2571 from nextcloud/issue-2568-allow-non-subadmins-to-change-language
Allow non subadmins to change language
This commit is contained in:
commit
60e4299bcb
|
@ -34,7 +34,7 @@ use OCP\AppFramework\Http;
|
|||
* @package OC\AppFramework\Middleware\Security\Exceptions
|
||||
*/
|
||||
class NotAdminException extends SecurityException {
|
||||
public function __construct() {
|
||||
parent::__construct('Logged in user must be an admin', Http::STATUS_FORBIDDEN);
|
||||
public function __construct($message = 'Logged in user must be an admin') {
|
||||
parent::__construct($message, Http::STATUS_FORBIDDEN);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -69,6 +69,7 @@ class PersonalController extends Controller {
|
|||
|
||||
/**
|
||||
* @NoAdminRequired
|
||||
* @NoSubadminRequired
|
||||
* @param string $lang
|
||||
* @return JSONResponse
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue