mirror of
https://github.com/makeplane/plane.git
synced 2025-12-25 08:09:33 +01:00
chore: update page lock authorization (#5635)
This commit is contained in:
committed by
GitHub
parent
43633f2f28
commit
441e5fc054
@@ -240,13 +240,7 @@ export class Page implements IPage {
|
||||
* @description returns true if the current logged in user can lock the page
|
||||
*/
|
||||
get canCurrentUserLockPage() {
|
||||
const { workspaceSlug, projectId } = this.store.router;
|
||||
|
||||
const currentUserProjectRole = this.store.user.permission.projectPermissionsByWorkspaceSlugAndProjectId(
|
||||
workspaceSlug?.toString() || "",
|
||||
projectId?.toString() || ""
|
||||
);
|
||||
return this.isCurrentUserOwner || (!!currentUserProjectRole && currentUserProjectRole >= EUserPermissions.MEMBER);
|
||||
return this.isCurrentUserOwner;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user