mirror of
https://github.com/outline/outline.git
synced 2025-12-30 07:19:52 -06:00
fix: User cannot update profile when MembersCanDeleteAccount setting is disabled, closes #7729
This commit is contained in:
@@ -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