-
Notifications
You must be signed in to change notification settings - Fork 0
/
ACCESSCONTROL.txt
107 lines (89 loc) · 4.51 KB
/
ACCESSCONTROL.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
/***********************************************/
/******* ACCESS CONTROL V1.7 ********/
/***********************************************/
/* Create Roles */
CREATE ROLE shipcaptain;
CREATE ROLE beamoperator;
CREATE ROLE personnelmgr;
CREATE ROLE technicalofficer;
/* shipcaptain permissions */
GRANT SELECT ON restricted_crew_location TO shipcaptain;
GRANT SELECT ON crew_location_view TO shipcaptain;
GRANT SELECT ON beaminglog_view TO shipcaptain;
GRANT SELECT, INSERT, UPDATE, DELETE ON BEAMING TO shipcaptain;
GRANT SELECT, INSERT, UPDATE, DELETE ON LOCATION TO shipcaptain;
GRANT SELECT, INSERT, UPDATE, DELETE ON CAPTAINLOG TO shipcaptain;
GRANT SELECT, INSERT, UPDATE, DELETE ON CREW TO shipcaptain;
GRANT SELECT, INSERT, UPDATE, DELETE ON RANK TO shipcaptain;
GRANT SELECT, INSERT, UPDATE, DELETE ON SUBSYSTEMS TO shipcaptain;
GRANT SELECT, INSERT, UPDATE, DELETE ON STATION TO shipcaptain;
GRANT SELECT, INSERT, UPDATE, DELETE ON STARSYSTEM TO shipcaptain;
GRANT SELECT, INSERT, UPDATE, DELETE ON MAINTENANCELOG TO shipcaptain;
GRANT EXECUTE ON Beam_Crew TO shipcaptain;
GRANT EXECUTE ON change_rank TO shipcaptain;
GRANT EXECUTE ON ship_attack TO shipcaptain;
GRANT EXECUTE ON get_location TO shipcaptain;
GRANT EXECUTE ON age_retrieval TO shipcaptain;
GRANT EXECUTE ON Distance_Between_SS TO shipcaptain;
GRANT EXECUTE ON change_rank TO shipcaptain;
GRANT EXECUTE ON Ship_Health TO shipcaptain;
GRANT EXECUTE ON Station_health TO shipcaptain;
GRANT EXECUTE ON authority_level_diff TO shipcaptain;
GRANT USAGE ON starsystem_seq TO shipcaptain;
GRANT USAGE ON station_seq TO shipcaptain;
GRANT USAGE ON subsystems_seq TO shipcaptain;
GRANT USAGE ON rank_seq TO shipcaptain;
GRANT USAGE ON crew_seq TO shipcaptain;
GRANT USAGE ON captainlog_seq TO shipcaptain;
GRANT USAGE ON location_seq TO shipcaptain;
GRANT USAGE ON beaming_seq TO shipcaptain;
GRANT USAGE ON maintenancelog_seq TO shipcaptain;
/* beamoperator permissions */
GRANT SELECT ON restricted_crew_view TO beamoperator;
GRANT SELECT ON crew_location_view TO beamoperator;
GRANT SELECT ON beaminglog_view TO beamoperator;
GRANT SELECT ON STATION TO beamoperator;
GRANT SELECT ON SUBSYSTEMS TO beamoperator;
GRANT SELECT, INSERT, UPDATE, DELETE ON BEAMING TO beamoperator;
GRANT SELECT, INSERT, UPDATE, DELETE ON LOCATION TO beamoperator;
GRANT SELECT, INSERT, UPDATE, DELETE ON STARSYSTEM TO beamoperator;
GRANT SELECT, INSERT, UPDATE, DELETE ON MAINTENANCELOG TO beamoperator;
GRANT EXECUTE ON Beam_Crew TO beamoperator;
GRANT EXECUTE ON Distance_Between_SS TO beamoperator;
GRANT EXECUTE ON get_location TO beamoperator;
GRANT USAGE ON starsystem_seq TO beamoperator;
GRANT USAGE ON location_seq TO beamoperator;
GRANT USAGE ON beaming_seq TO beamoperator;
GRANT USAGE ON maintenancelog_seq TO beamoperator;
/* personnelmgr permissions */
GRANT SELECT ON restricted_crew_view TO beamoperator;
GRANT SELECT ON crew_location_view TO beamoperator;
GRANT SELECT ON beaminglog_view TO beamoperator;
GRANT SELECT, INSERT, UPDATE, DELETE ON CREW TO personnelmgr;
GRANT SELECT, INSERT, UPDATE, DELETE ON RANK TO personnelmgr;
GRANT SELECT, INSERT, UPDATE, DELETE ON MAINTENANCELOG TO personnelmgr;
GRANT SELECT ON BEAMING TO personnelmgr;
GRANT SELECT ON LOCATION TO personnelmgr;
GRANT SELECT ON STARSYSTEM TO personnelmgr;
GRANT EXECUTE ON age_retrieval TO personnelmgr;
GRANT EXECUTE ON get_location TO personnelmgr;
GRANT EXECUTE ON change_rank TO personnelmgr;
GRANT USAGE ON rank_seq TO personnelmgr;
GRANT USAGE ON crew_seq TO personnelmgr;
GRANT USAGE ON maintenancelog_seq TO personnelmgr;
/* technicalofficer permissions */
GRANT SELECT ON restricted_crew_view TO technicalofficer;
GRANT SELECT ON STATION TO technicalofficer;
GRANT SELECT, INSERT, UPDATE, DELETE ON SUBSYSTEMS TO technicalofficer;
GRANT SELECT, INSERT, UPDATE, DELETE ON LOCATIONS TO technicalofficer;
GRANT SELECT, INSERT, UPDATE, DELETE ON STARSYSTEM TO technicalofficer;
GRANT SELECT, INSERT, UPDATE, DELETE ON MAINTENANCELOG TO technicalofficer;
GRANT EXECUTE ON Station_health TO technicalofficer;
GRANT EXECUTE ON Ship_Health TO technicalofficer;
GRANT EXECUTE ON Distance_Between_SS TO technicalofficer;
GRANT EXECUTE ON get_location TO technicalofficer;
GRANT EXECUTE ON ship_attack TO technicalofficer;
GRANT USAGE ON starsystem_seq TO technicalofficer;
GRANT USAGE ON subsystems_seq TO technicalofficer;
GRANT USAGE ON location_seq TO technicalofficer;
GRANT USAGE ON maintenancelog_seq TO technicalofficer;