Skip to content

project read policy #163

Open
Open
@yujonglee

Description

@yujonglee

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions