Proca.Permission (proca v3.3.1)

Permission bits used in proca. Should be named with a verb_noun (_owner is an exception here).

manage - add/delete/update objects change - change some object's association or properties

Right now the permissions in relation to Org are on the Staffer, and global permissions are in User. This is why this module should be moved up in module tree.

Link to this section Summary

Link to this section Functions

Link to this function


Link to this function

add(perms, permission)

Link to this function

can?(user_or_staffer, permission)


  Proca.Auth | Proca.Users.User | Proca.Staffer | nil,
  [atom()] | atom() | number()
) ::
Link to this function

remove(perms, permission)