Lightning.Policies.Dataclips (Lightning v2.19.0-pre)
View SourceThe Bodyguard Policy module for dataclips actions.
A dataclip belongs to a project, and viewing one is exactly project access —
so this delegates rather than re-deciding. The previous implementation built a
%Project{} from the dataclip's project_id and asked whether the user was a
member of it, which could not see scheduled_deletion and so served bodies
from projects that had been shut down.
Summary
Functions
Callback implementation for Bodyguard.Policy.authorize/3.
Types
Functions
@spec authorize( actions(), Lightning.Accounts.User.t(), Lightning.Invocation.Dataclip.t() ) :: boolean()
Callback implementation for Bodyguard.Policy.authorize/3.