mirror of
https://github.com/flarum/framework.git
synced 2025-05-28 02:40:00 +08:00
Remove sudo mode and add password confirmation when changing email address
closes #674
This commit is contained in:
@ -37,7 +37,7 @@ class UpdateExtensionController implements ControllerInterface
|
||||
*/
|
||||
public function handle(ServerRequestInterface $request)
|
||||
{
|
||||
$this->assertAdminAndSudo($request);
|
||||
$this->assertAdmin($request->getAttribute('actor'));
|
||||
|
||||
$enabled = array_get($request->getParsedBody(), 'enabled');
|
||||
$name = array_get($request->getQueryParams(), 'name');
|
||||
|
Reference in New Issue
Block a user