mirror of
https://github.com/outline/outline.git
synced 2026-11-28 08:14:58 +03:00
fix: User cannot update profile when MembersCanDeleteAccount setting is disabled, closes #7729
This commit is contained in:
1 parent
8356d44cae
commit
033b05f679
1 file changed
+8
-1
@@ -23,9 +23,16 @@ allow(User, "inviteUser", Team, (actor, team) =>
|
||||
)
|
||||
);
|
||||
|
||||
allow(User, ["update", "delete", "readDetails"], User, (actor, user) =>
|
||||
allow(User, ["update", "readDetails"], User, (actor, user) =>
|
||||
or(
|
||||
//
|
||||
isTeamAdmin(actor, user),
|
||||
actor.id === user?.id
|
||||
)
|
||||
);
|
||||
|
||||
allow(User, "delete", User, (actor, user) =>
|
||||
or(
|
||||
isTeamAdmin(actor, user),
|
||||
and(
|
||||
actor.id === user?.id,
|
||||
|
||||
Reference in new issue
Block a user