1
0
mirror of https://github.com/flarum/core.git synced 2025-10-12 15:34:26 +02:00

User edit permission tightening (#2620)

- Split user edit permision into edit attributes, edit credentials, and edit groups
- Only Admins can edit Admin Credentials
- Only Admins can Promote/Demote to/from Admin
This commit is contained in:
Matt Kilgore
2021-03-01 15:52:29 -05:00
committed by GitHub
parent d0adb244da
commit 9627eb73f1
9 changed files with 779 additions and 103 deletions

View File

@@ -30,6 +30,8 @@ Object.assign(User.prototype, {
commentCount: Model.attribute('commentCount'),
canEdit: Model.attribute('canEdit'),
canEditCredentials: Model.attribute('canEditCredentials'),
canEditGroups: Model.attribute('canEditGroups'),
canDelete: Model.attribute('canDelete'),
avatarColor: null,