Class: Alberich::Privilege

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/alberich/privilege.rb

Constant Summary collapse

PERM_SET =
"set_perms"
PERM_VIEW =

can create/modify/delete permission records on this object

"view_perms"
CREATE =

can view permission records on this object

"create"
MODIFY =

can create objects of this type here

"modify"
VIEW =

can modify objects of this type here

"view"
USE =

can view objects of this type here

"use"
ACTIONS =

can use objects of this type here

[ CREATE, MODIFY, USE, VIEW,
PERM_SET, PERM_VIEW]
TARGET_TYPES =
["Alberich::BasePermissionObject"] +
Alberich.permissioned_object_classes +
Alberich.additional_privilege_scopes