View Source Lightning.Policies.Exports (Lightning v2.10.4)

The Bodyguard Policy module for Exports

Summary

Types

@type actions() :: :download

Functions

Link to this function

authorize(atom, user, file)

View Source
@spec authorize(actions(), Lightning.Accounts.User.t(), Lightning.Projects.File.t()) ::
  boolean() | {:error, :forbidden}

Callback implementation for Bodyguard.Policy.authorize/3.