[WEB-1985] chore: page access control (#5154)

* chore: page access control

* chore: page access update endpoint updated

---------

Co-authored-by: Anmol Singh Bhatia <anmolsinghbhatia@plane.so>
This commit is contained in:
Bavisetti Narayan 2024-07-19 15:43:01 +05:30 committed by GitHub
parent d3c3d3c5ab
commit 39a607ac0a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 42 additions and 2 deletions

View file

@ -363,7 +363,7 @@ export class Page implements IPage {
runInAction(() => (this.access = EPageAccess.PUBLIC));
try {
await this.pageService.update(workspaceSlug, projectId, this.id, {
await this.pageService.updateAccess(workspaceSlug, projectId, this.id, {
access: EPageAccess.PUBLIC,
});
} catch (error) {
@ -385,7 +385,7 @@ export class Page implements IPage {
runInAction(() => (this.access = EPageAccess.PRIVATE));
try {
await this.pageService.update(workspaceSlug, projectId, this.id, {
await this.pageService.updateAccess (workspaceSlug, projectId, this.id, {
access: EPageAccess.PRIVATE,
});
} catch (error) {