mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-02 03:16:11 +01:00
Unset state from user if no super or user admin
This commit is contained in:
@@ -702,6 +702,7 @@ class Admin
|
|||||||
// Clean field for users who shouldn't be able to modify these fields
|
// Clean field for users who shouldn't be able to modify these fields
|
||||||
if (!$this->authorize(['admin.user', 'admin.super'])) {
|
if (!$this->authorize(['admin.user', 'admin.super'])) {
|
||||||
unset($post['access']);
|
unset($post['access']);
|
||||||
|
unset($post['state']);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $post;
|
return $post;
|
||||||
|
|||||||
Reference in New Issue
Block a user