Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev: revamp pages authorization #6094

Merged
merged 1 commit into from
Dec 2, 2024
Merged

dev: revamp pages authorization #6094

merged 1 commit into from
Dec 2, 2024

Conversation

aaryan610
Copy link
Collaborator

@aaryan610 aaryan610 commented Nov 26, 2024

Pages roles revamp-

  1. Only admins and members can create a new page.
  2. Only the project admins and the creator of the page can lock/unlock, archive/restore and change access of a page.

Summary by CodeRabbit

  • New Features

    • Enhanced user permissions for page management, restricting sensitive actions to admins and members.
    • Added a new computed property to check if the current user can create a page based on their project role.
  • Bug Fixes

    • Standardized error messages for various page management actions.
  • Refactor

    • Simplified permission checks in the page creation logic, improving the control flow.
  • Documentation

    • Updated method signatures to reflect changes in permission handling.

Copy link
Contributor

coderabbitai bot commented Nov 26, 2024

Walkthrough

The changes in this pull request primarily focus on enhancing permission handling within the PageViewSet class and related components. The @allow_permission decorator has been updated to restrict access to certain methods, allowing only ROLE.ADMIN and ROLE.MEMBER. Modifications include new checks for user roles, the introduction of a creator=True parameter for specific methods, and standardization of error messages. Additionally, the PagesListHeader component and the Page class have been adjusted to streamline permission checks and ensure that user actions are appropriately restricted based on their roles.

Changes

File Path Change Summary
apiserver/plane/app/views/page/base.py Updated PageViewSet methods to restrict permissions to ROLE.ADMIN and ROLE.MEMBER. Added creator=True parameter for certain methods. Modified destroy method to require archiving before deletion. Standardized error messages.
web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/pages/(list)/header.tsx Removed useUserPermissions hook; simplified permission checks using canCurrentUserCreatePage from useProjectPages hook.
web/core/store/pages/page.ts Updated user permission computed properties to refine conditions for editing, duplicating, locking, changing access, archiving, deleting, and favoriting pages.
web/core/store/pages/project-page.store.ts Added canCurrentUserCreatePage computed property to IProjectPageStore interface and implemented it in ProjectPageStore. Updated constructor for observables.

Possibly related PRs

Suggested labels

⚙️backend, 🌟improvement

Suggested reviewers

  • sriramveeraghanta
  • SatishGandham
  • pablohashescobar
  • rahulramesha

🐰 In the land of code, where permissions play,
A rabbit hops forth to brighten the day.
With roles now defined, and access refined,
Only the worthy can create and unwind.
So let’s celebrate changes, both big and small,
In the garden of code, we welcome them all! 🌼


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🧹 Outside diff range and nitpick comments (12)
web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/pages/(list)/header.tsx (3)

16-16: Good architectural improvement!

Moving the permission logic to the store level through useProjectPages hook is a better approach than handling permissions directly in the component. This centralization makes the permission logic more maintainable and reusable.

Also applies to: 28-28


Line range hint 31-48: Consider enhancing user feedback during page creation

While the error handling is comprehensive, users might benefit from visual feedback during the creation process beyond just the button loading state.

Consider adding a loading indicator or progress feedback:

 const handleCreatePage = async () => {
   setIsCreatingPage(true);
+  setLoadingState("Creating new page..."); // Add this state
   setTrackElement("Project pages page");

   const payload: Partial<TPage> = {
     access: pageType === "private" ? EPageAccess.PRIVATE : EPageAccess.PUBLIC,
   };

   await createPage(payload)
     .then((res) => {
       const pageId = `/${workspaceSlug}/projects/${currentProjectDetails?.id}/pages/${res?.id}`;
       router.push(pageId);
     })
     .catch((err) =>
       setToast({
         type: TOAST_TYPE.ERROR,
         title: "Error!",
         message: err?.data?.error || "Page could not be created. Please try again.",
       })
     )
-    .finally(() => setIsCreatingPage(false));
+    .finally(() => {
+      setIsCreatingPage(false);
+      setLoadingState(null);
+    });
 };

Line range hint 82-90: Improve UX for users without page creation permissions

Instead of showing nothing when users can't create pages, consider showing a disabled button with a tooltip explaining why they don't have permission. This provides better feedback to users about their access levels.

Here's a suggested improvement:

-      {canCurrentUserCreatePage ? (
-        <Header.RightItem>
-          <Button variant="primary" size="sm" onClick={handleCreatePage} loading={isCreatingPage}>
-            {isCreatingPage ? "Adding" : "Add page"}
-          </Button>
-        </Header.RightItem>
-      ) : (
-        <></>
-      )}
+      <Header.RightItem>
+        <Button
+          variant="primary"
+          size="sm"
+          onClick={handleCreatePage}
+          loading={isCreatingPage}
+          disabled={!canCurrentUserCreatePage}
+          tooltip={
+            !canCurrentUserCreatePage
+              ? "Only project admins and members can create new pages"
+              : undefined
+          }
+        >
+          {isCreatingPage ? "Adding" : "Add page"}
+        </Button>
+      </Header.RightItem>
web/core/store/pages/page.ts (2)

245-250: Optimize the role comparison

The implementation correctly restricts page locking to admins and page owners. Consider using strict equality for the role comparison for better type safety and slight performance improvement.

-   return this.isCurrentUserOwner || currentUserProjectRole === EUserPermissions.ADMIN;
+   return this.isCurrentUserOwner || currentUserProjectRole === EUserPermissions.ADMIN;

257-262: Consider reducing code duplication

The logic for checking if a user can change access is identical to canCurrentUserLockPage. Consider extracting this common logic into a private helper method to improve maintainability.

+ private canUserManagePage() {
+   const { workspaceSlug, projectId } = this.store.router;
+   const currentUserProjectRole = this.store.user.permission.projectPermissionsByWorkspaceSlugAndProjectId(
+     workspaceSlug?.toString() || "",
+     projectId?.toString() || ""
+   );
+   return this.isCurrentUserOwner || currentUserProjectRole === EUserPermissions.ADMIN;
+ }

  get canCurrentUserLockPage() {
-   const { workspaceSlug, projectId } = this.store.router;
-   const currentUserProjectRole = this.store.user.permission.projectPermissionsByWorkspaceSlugAndProjectId(
-     workspaceSlug?.toString() || "",
-     projectId?.toString() || ""
-   );
-   return this.isCurrentUserOwner || currentUserProjectRole === EUserPermissions.ADMIN;
+   return this.canUserManagePage();
  }

  get canCurrentUserChangeAccess() {
-   const { workspaceSlug, projectId } = this.store.router;
-   const currentUserProjectRole = this.store.user.permission.projectPermissionsByWorkspaceSlugAndProjectId(
-     workspaceSlug?.toString() || "",
-     projectId?.toString() || ""
-   );
-   return this.isCurrentUserOwner || currentUserProjectRole === EUserPermissions.ADMIN;
+   return this.canUserManagePage();
  }
apiserver/plane/app/views/page/base.py (7)

Line range hint 117-136: Add project existence validation

While the permission check is correctly implemented, the method should validate that the project exists and is accessible to the user before creating the page.

 @allow_permission([ROLE.ADMIN, ROLE.MEMBER])
 def create(self, request, slug, project_id):
+    project = Project.objects.filter(
+        pk=project_id,
+        workspace__slug=slug,
+        project_projectmember__member=request.user,
+        project_projectmember__is_active=True
+    ).first()
+    if not project:
+        return Response(
+            {"error": "Project not found or not accessible"},
+            status=status.HTTP_404_NOT_FOUND
+        )
+
     serializer = PageSerializer(
         data=request.data,
         context={

Line range hint 177-186: Fix incorrect error message in exception handler

The error message in the except block is misleading as it refers to access update when the page might not exist at all.

 except Page.DoesNotExist:
     return Response(
         {
-            "error": "Access cannot be updated since this page is owned by someone else"
+            "error": "Page not found or not accessible"
         },
         status=status.HTTP_404_NOT_FOUND,
     )

Line range hint 187-236: Optimize database queries

The method makes separate queries for page and project. Consider combining them using select_related to reduce database round trips.

-    page = self.get_queryset().filter(pk=pk).first()
-    project = Project.objects.get(pk=project_id)
+    page = self.get_queryset().select_related('projects__project').filter(pk=pk).first()
+    project = page.projects.first() if page else None

Line range hint 237-257: Add proper error handling for non-existent pages

Both lock and unlock methods should handle cases where the page doesn't exist.

 @allow_permission([ROLE.ADMIN], model=Page, creator=True)
 def lock(self, request, slug, project_id, pk):
     page = Page.objects.filter(
         pk=pk, workspace__slug=slug, projects__id=project_id
     ).first()
+    if not page:
+        return Response(
+            {"error": "Page not found"},
+            status=status.HTTP_404_NOT_FOUND
+        )

Apply similar changes to the unlock method.


Line range hint 258-282: Remove redundant ownership check

The ownership check is redundant as it's already handled by the creator=True parameter in the @allow_permission decorator.

-    # Only update access if the page owner is the requesting user
-    if (
-        page.access != request.data.get("access", page.access)
-        and page.owned_by_id != request.user.id
-    ):
-        return Response(
-            {
-                "error": "Access cannot be updated since this page is owned by someone else"
-            },
-            status=status.HTTP_400_BAD_REQUEST,
-        )

Line range hint 299-350: Security and optimization concerns in archive/unarchive operations

  1. The role checks are redundant as they're handled by the decorator

  2. The SQL query in unarchive_archive_page_and_descendants is potentially vulnerable to SQL injection

  3. Remove redundant role checks:

-    # only the owner or admin can archive the page
-    if (
-        ProjectMember.objects.filter(
-            project_id=project_id, member=request.user, is_active=True, role__lte=15
-        ).exists()
-        and request.user.id != page.owned_by_id
-    ):
-        return Response(
-            {"error": "Only the owner or admin can archive the page"},
-            status=status.HTTP_400_BAD_REQUEST,
-        )
  1. Use parameterized queries in the helper function:
def unarchive_archive_page_and_descendants(page_id, archived_at):
    with connection.cursor() as cursor:
        cursor.execute(
            """
            WITH RECURSIVE descendants AS (
                SELECT id FROM pages WHERE id = %(page_id)s
                UNION ALL
                SELECT pages.id FROM pages, descendants 
                WHERE pages.parent_id = descendants.id
            )
            UPDATE pages SET archived_at = %(archived_at)s 
            WHERE id IN (SELECT id FROM descendants)
            """,
            {"page_id": page_id, "archived_at": archived_at}
        )

Line range hint 351-390: Remove redundant permission checks in delete operation

The ownership and admin role checks are redundant as they're already handled by the @allow_permission decorator with creator=True.

-    if page.owned_by_id != request.user.id and (
-        not ProjectMember.objects.filter(
-            workspace__slug=slug,
-            member=request.user,
-            role=20,
-            project_id=project_id,
-            is_active=True,
-        ).exists()
-    ):
-        return Response(
-            {"error": "Only admin or owner can delete the page"},
-            status=status.HTTP_403_FORBIDDEN,
-        )
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 7469e67 and e856c91.

📒 Files selected for processing (4)
  • apiserver/plane/app/views/page/base.py (8 hunks)
  • web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/pages/(list)/header.tsx (3 hunks)
  • web/core/store/pages/page.ts (1 hunks)
  • web/core/store/pages/project-page.store.ts (4 hunks)
🔇 Additional comments (7)
web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/pages/(list)/header.tsx (1)

28-28: Verify permission handling consistency

Let's verify that the canCurrentUserCreatePage permission check is consistently implemented across the codebase.

✅ Verification successful

Permission handling appears to be consistently implemented

Based on the search results, we can see that:

  1. The useProjectPages hook is used consistently across the page-related components
  2. No direct permission checks using useUserPermissions were found
  3. The permission check is centralized through the canCurrentUserCreatePage property

The implementation appears to follow a consistent pattern across the codebase, with permissions being properly managed through the centralized hook.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Search for other instances of page creation permissions to ensure consistency
rg -l "canCurrentUserCreatePage|useProjectPages" --type tsx --type ts

# Search for any remaining direct permission checks that should be migrated
rg -l "useUserPermissions.*pages?" --type tsx --type ts

Length of output: 185


Script:

#!/bin/bash
# Search for other instances of page creation permissions to ensure consistency
# Using ripgrep without file type filters since tsx/ts extensions aren't recognized
rg -l "canCurrentUserCreatePage|useProjectPages"

# Search for any remaining direct permission checks that should be migrated
rg -l "useUserPermissions.*pages?"

Length of output: 703


Script:

#!/bin/bash
# Let's check the actual implementation of permission checks in these files
rg "canCurrentUserCreatePage" -A 5 web/core/hooks/store/pages/use-project-page.ts

# Also check how it's being used in components
rg "canCurrentUserCreatePage" -A 2 web/core/components/pages/pages-list-view.tsx web/core/components/pages/modals/create-page-modal.tsx

Length of output: 217


Script:

#!/bin/bash
# Let's try using ast-grep to find the implementation and usage patterns
ast-grep --pattern 'const $_ = {
  $$$
  canCurrentUserCreatePage
  $$$
}'

# Also search for the hook definition
ast-grep --pattern 'export const useProjectPages = () => {
  $$$
}'

# And check for any direct permission checks
rg "useUserPermissions.*pages?" -A 3

Length of output: 185

web/core/store/pages/project-page.store.ts (3)

3-3: LGTM: Import changes are appropriate

The addition of computed from MobX and EUserPermissions from constants aligns with the new functionality being added.

Also applies to: 9-10


29-29: LGTM: Interface addition is well-structured

The new computed property is properly typed and follows the interface's organization pattern.


68-70: LGTM: MobX configuration is correct

The new computed property is properly configured in makeObservable, maintaining reactivity.

web/core/store/pages/page.ts (2)

238-238: LGTM! Clear and consistent permission check

The simplified permission check aligns well with the PR objectives by allowing both members and admins to duplicate pages.


Line range hint 1-1: Verify implementation of remaining PR objectives

Some objectives from the PR description are not visible in the changes to this file:

  1. Page creation restrictions
  2. Archive/restore permission implementations
apiserver/plane/app/views/page/base.py (1)

Line range hint 283-298: LGTM! Guest access restrictions properly implemented

The implementation correctly handles guest access restrictions based on the guest_view_all_features flag.

Comment on lines +101 to +111
/**
* @description returns true if the current logged in user can create a page
*/
get canCurrentUserCreatePage() {
const { workspaceSlug, projectId } = this.store.router;
const currentUserProjectRole = this.store.user.permission.projectPermissionsByWorkspaceSlugAndProjectId(
workspaceSlug?.toString() || "",
projectId?.toString() || ""
);
return !!currentUserProjectRole && currentUserProjectRole >= EUserPermissions.MEMBER;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Add null safety checks and improve error handling

While the implementation aligns with the PR objectives, consider these improvements for better robustness:

  1. Add null checks before toString()
  2. Handle potential undefined return from permission check
  3. Add error logging for debugging

Consider this safer implementation:

  get canCurrentUserCreatePage() {
    const { workspaceSlug, projectId } = this.store.router;
+   if (!workspaceSlug || !projectId) return false;
    const currentUserProjectRole = this.store.user.permission.projectPermissionsByWorkspaceSlugAndProjectId(
-     workspaceSlug?.toString() || "",
-     projectId?.toString() || ""
+     workspaceSlug.toString(),
+     projectId.toString()
    );
-   return !!currentUserProjectRole && currentUserProjectRole >= EUserPermissions.MEMBER;
+   try {
+     return typeof currentUserProjectRole === 'number' && currentUserProjectRole >= EUserPermissions.MEMBER;
+   } catch (error) {
+     console.error('Error checking page creation permission:', error);
+     return false;
+   }
  }
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
/**
* @description returns true if the current logged in user can create a page
*/
get canCurrentUserCreatePage() {
const { workspaceSlug, projectId } = this.store.router;
const currentUserProjectRole = this.store.user.permission.projectPermissionsByWorkspaceSlugAndProjectId(
workspaceSlug?.toString() || "",
projectId?.toString() || ""
);
return !!currentUserProjectRole && currentUserProjectRole >= EUserPermissions.MEMBER;
}
/**
* @description returns true if the current logged in user can create a page
*/
get canCurrentUserCreatePage() {
const { workspaceSlug, projectId } = this.store.router;
if (!workspaceSlug || !projectId) return false;
const currentUserProjectRole = this.store.user.permission.projectPermissionsByWorkspaceSlugAndProjectId(
workspaceSlug.toString(),
projectId.toString()
);
try {
return typeof currentUserProjectRole === 'number' && currentUserProjectRole >= EUserPermissions.MEMBER;
} catch (error) {
console.error('Error checking page creation permission:', error);
return false;
}
}

💡 Codebase verification

Additional permission checks required for page operations

The implementation shows that lock/unlock and archive/restore operations are restricted to page owners and admin users only (currentUserProjectRole === EUserPermissions.ADMIN), while page creation is allowed for members and above (currentUserProjectRole >= EUserPermissions.MEMBER). This inconsistency needs to be addressed to align with the PR objectives.

  • canCurrentUserLockPage: Currently restricted to owners and admins only
  • canCurrentUserArchivePage: Currently restricted to owners and admins only
  • canCurrentUserCreatePage: Allows members and above

These permission checks should be updated to consistently allow members and above for all operations, as per the PR objectives.

🔗 Analysis chain

Verify coverage of all PR objectives

While this implementation correctly handles the page creation permission requirements, the PR objectives also mention restrictions for lock/unlock, archive/restore, and access change operations. These operations should be implemented with similar permission checks.

Let's verify if these operations are implemented elsewhere:


Let's search specifically for permission checks related to page operations.


Let's check the permission levels required for lock/unlock and archive/restore operations.


Let's get the implementation details of these permission checks.


Let's try a different approach to get the implementation details.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Search for lock/unlock, archive/restore implementations
rg -l "lock|unlock|archive|restore" --type ts

# Search for permission checks in those files
ast-grep --pattern 'permission.$$$' --lang ts

Length of output: 26076


Script:

#!/bin/bash
# Search for page-related permission checks in service and store files
rg -A 5 "lock|unlock|archive|restore" web/core/services/page/project-page.service.ts web/core/store/pages/page.ts

# Search for page permission implementations
ast-grep --pattern 'canCurrentUser$_' --lang ts

Length of output: 11550


Script:

#!/bin/bash
# Search for permission checks related to page operations
rg -B 5 "canCurrentUser(Lock|Archive)Page" web/core/store/pages/page.ts

Length of output: 1025


Script:

#!/bin/bash
# Get the implementation of permission check methods
ast-grep --pattern 'get canCurrentUser(Lock|Archive)Page() {
  $$$
}' --lang ts

Length of output: 552


Script:

#!/bin/bash
# Get the implementation of permission check methods
rg -A 10 "get canCurrentUserLockPage\(\)" web/core/store/pages/page.ts
rg -A 10 "get canCurrentUserArchivePage\(\)" web/core/store/pages/page.ts

Length of output: 1091

Comment on lines +222 to +226
const isPagePublic = this.access === EPageAccess.PUBLIC;
return (
(isPagePublic && !!currentUserProjectRole && currentUserProjectRole >= EUserPermissions.MEMBER) ||
(!isPagePublic && this.isCurrentUserOwner)
);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Consider allowing admins to edit private pages

The current implementation might be too restrictive as it prevents admins from editing private pages unless they're the owner. Consider updating the logic to:

    return (
      (isPagePublic && !!currentUserProjectRole && currentUserProjectRole >= EUserPermissions.MEMBER) ||
-     (!isPagePublic && this.isCurrentUserOwner)
+     (!isPagePublic && (this.isCurrentUserOwner || currentUserProjectRole === EUserPermissions.ADMIN))
    );
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
const isPagePublic = this.access === EPageAccess.PUBLIC;
return (
(isPagePublic && !!currentUserProjectRole && currentUserProjectRole >= EUserPermissions.MEMBER) ||
(!isPagePublic && this.isCurrentUserOwner)
);
const isPagePublic = this.access === EPageAccess.PUBLIC;
return (
(isPagePublic && !!currentUserProjectRole && currentUserProjectRole >= EUserPermissions.MEMBER) ||
(!isPagePublic && (this.isCurrentUserOwner || currentUserProjectRole === EUserPermissions.ADMIN))
);

@pushya22 pushya22 merged commit 8c04aa6 into preview Dec 2, 2024
13 of 15 checks passed
@pushya22 pushya22 deleted the fix/pages-auth branch December 2, 2024 08:29
@coderabbitai coderabbitai bot mentioned this pull request Dec 19, 2024
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants