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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃殌 Enhancement: Permission.all #8052

Open
2 tasks done
moshOntong-IT opened this issue Apr 30, 2024 · 0 comments
Open
2 tasks done

馃殌 Enhancement: Permission.all #8052

moshOntong-IT opened this issue Apr 30, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@moshOntong-IT
Copy link

moshOntong-IT commented Apr 30, 2024

馃敄 Enhancement description

Currently we have Permission.write, Permission.read, Permission. create, Permission.update. But can we add Permission.all to indiciate that it takes all permission

馃帳 Pitch

In my use case I have this Permissions sample

  const memberPermission = [
        Permission.read(Role.team(teamResponse.$id)),
        Permission.write(
          Role.team(teamResponse.$id, SchoolPermission.teacher.code)
        ),

        Permission.read(Role.team(schoolId, SchoolPermission.schoolAdmin.code)),
        Permission.write(
          Role.team(schoolId, SchoolPermission.schoolAdmin.code)
        ),
        Permission.read(Role.team(schoolId, "owner")),
        Permission.write(Role.team(schoolId, "owner")),
      ];

Maybe its good if we have Permission.all this could shorten my line code hehe. I hope, the team consider this feature request of mine.

馃憖 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

馃彚 Have you read the Code of Conduct?

@moshOntong-IT moshOntong-IT added the enhancement New feature or request label Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant