add some special permissions (wip)

This commit is contained in:
John Woodlock
2012-09-03 17:58:25 +10:00
parent a337b6574c
commit d56c86c9af
7 changed files with 43 additions and 47 deletions
@@ -4,4 +4,11 @@ values (0, "ALL_FUNCTIONS", "An application user will have permission to execute
insert into m_permission (group_enum, code, default_description, default_name)
values (0, "ALL_FUNCTIONS_READ", "An application user will have permission to execute all read tasks.", "ALL READ");
values (0, "ALL_FUNCTIONS_READ", "An application user will have permission to execute all read tasks.", "ALL READ");
/* give default super user role the all_functions permissions as well as current ones for now */
insert into m_role_permission (permission_id, role_id)
select p.id, 1
from m_permission p
where p.code = "ALL_FUNCTIONS";