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

project read policy #163

Open
yujonglee opened this issue Oct 26, 2024 · 0 comments
Open

project read policy #163

yujonglee opened this issue Oct 26, 2024 · 0 comments

Comments

@yujonglee
Copy link
Contributor

something live below:

bypass action_type(:read) do
  authorize_if expr(public == true)
end

policy action_type(:read) do
  authorize_if relates_to_actor_via(:account)
end

currently we are filtering based on public in call-side, which is error-prone.

Note that after this policy change, there's lot to change.

e.g:

  • project filtering search interface
  • project finding in create_document
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant