- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
# Return all the permissions that can be given to the role
def for_set_permissions
permissions = Abt::AccessControl.permissions
permissions = Abt::AccessControl.user_permissions if self.builtin == BUILTIN_USER
permissions = Abt::AccessControl.manager_permissions if self.builtin == BUILTIN_MANAGER
permissions = Abt::AccessControl.architect_permissions if self.builtin == BUILTIN_ARCHITECT
permissions = Abt::AccessControl.designer_permissions if self.builtin == BUILTIN_DESIGNER
permissions = Abt::AccessControl.customer_permissions if self.builtin == BUILTIN_CUSTOMER
permissions = Abt::AccessControl.vendor_permissions if self.builtin == BUILTIN_VENDOR
permissions = Abt::AccessControl.dealer_permissions if self.builtin == BUILTIN_DEALER
permissions - Abt::AccessControl.public_permissions
end
Lure Of Chaos 11.12.2011 15:24 # 0