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

Feature: Reuse Table Permissions #3816

Open
2 tasks done
adminy opened this issue Apr 6, 2024 · 0 comments
Open
2 tasks done

Feature: Reuse Table Permissions #3816

adminy opened this issue Apr 6, 2024 · 0 comments
Labels
feature New feature or request triage This issue is new

Comments

@adminy
Copy link
Contributor

adminy commented Apr 6, 2024

Is your feature request related to a problem?

I seem to be repeating myself defining table permissions over and over again. I'd be nice to make it somewhat reusable.

Describe the solution

DEFINE  PERMISSIONS
		FOR select -- roleData is the mapping between the role and the data.
			WHERE id IN $roleData
		FOR create, update
			WHERE id IN $roleData
		FOR delete
			WHERE id IN $roleData
ON table1, table2, table3;

Alternative methods

Have Variable holding permissions.

SurrealDB version

surreal 1.3.1 for macos aarch64

Contact Details

marinbivol10@gmail.com

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request triage This issue is new
Projects
None yet
Development

No branches or pull requests

1 participant