parent
aeac59d5ed
commit
46a9dfbbf3
@ -0,0 +1,18 @@ |
||||
-- Berechtigungen |
||||
|
||||
CREATE ROLE sekretariat; |
||||
CREATE ROLE schatzmeisterei; |
||||
CREATE ROLE presse; |
||||
|
||||
-- Sekretariat (Generalsekretär) |
||||
GRANT SELECT, INSERT, UPDATE, DELETE ON pmv.mitglied TO sekretariat; |
||||
GRANT SELECT, INSERT, UPDATE, DELETE ON pmv.beitrag TO sekretariat; |
||||
GRANT SELECT, INSERT, UPDATE, DELETE ON pmv.wahl TO sekretariat; |
||||
GRANT SELECT, INSERT, UPDATE, DELETE ON pmv.wahlkreis TO sekretariat; |
||||
|
||||
-- Schatzmeisterei |
||||
GRANT SELECT, INSERT, UPDATE ON pmv.buchung TO schatzmeisterei; |
||||
|
||||
-- Presse |
||||
-- TODO Felder über einen View einschränken |
||||
GRANT SELECT ON pmv.mitglied TO presse; |
Loading…
Reference in new issue