mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-03 11:55:52 +01:00
Unset state from user if no super or user admin
This commit is contained in:
@@ -713,6 +713,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