mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-01 19:06:16 +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
|
||||
if (!$this->authorize(['admin.user', 'admin.super'])) {
|
||||
unset($post['access']);
|
||||
unset($post['state']);
|
||||
}
|
||||
|
||||
return $post;
|
||||
|
||||
Reference in New Issue
Block a user