db_user migration
authorRoland Hieber <devnull@localhost>
Sun, 27 Dec 2009 06:58:44 +0000 (07:58 +0100)
committerRoland Hieber <devnull@localhost>
Sun, 27 Dec 2009 06:58:44 +0000 (07:58 +0100)
inc/functions.inc
inc/mod_roomReservationConfig.inc
inc/mod_roomReservationRoomsManager.inc
sql/mod_room-reservation.sql

index 741f8f7..ca915c2 100644 (file)
@@ -31,6 +31,8 @@ require_once("db.inc");
 require_once("user.inc");
 require_once("sec/secure.inc");
 
+db_user("roomreservation");
+
 /**
  * @page errorcodes Error Codes
  * @{
index 7fe357a..6acc199 100644 (file)
@@ -32,6 +32,8 @@ require_once("mod_room-reservation/functions.inc");
 require_once("mod_room-reservation/mod_roomReservationTimeslice.inc");
 require_once("mod_room-reservation/mod_roomReservationRoomsManager.inc");
 
+db_user("roomreservation");
+
 /**
  * Determines if a privilege has been assigned
  * @param $sPriv (string) Privilege to test
index 4c90b79..2ceb1b9 100644 (file)
@@ -31,6 +31,8 @@ require_once("mod_room-reservation/functions.inc");
 require_once("mod_room-reservation/mod_roomReservationRoom.inc");
 require_once("mod_room-reservation/mod_roomReservationConfig.inc");
 
+db_user("roomreservation");
+
 /** Simple class for creating, editing and deleting rooms */
 class mod_roomReservationRoomsManager {
   /** (mod_roomReservationConfig) Reference to the configuration */
index b585798..c34f355 100644 (file)
@@ -1,3 +1,5 @@
+CREATE USER roomreservation;
+
 --
 -- Table with rooms allowed for booking
 -- 
@@ -33,11 +35,15 @@ CREATE TABLE mod_roomreservation_bookings (
 --
 -- Permissions
 --
-GRANT SELECT, INSERT, UPDATE, DELETE ON mod_roomreservation_bookings TO webusr, 
-  webadm;
-GRANT SELECT, UPDATE ON mod_roomreservation_bookings_rrb_uid_seq TO webusr, 
-  webadm;
-GRANT SELECT ON mod_roomreservation_roomswhitelist TO webusr;
+GRANT SELECT, INSERT, UPDATE, DELETE ON mod_roomreservation_bookings TO
+  roomreservation; 
+GRANT SELECT, UPDATE ON mod_roomreservation_bookings_rrb_uid_seq TO
+  roomreservation;
 GRANT SELECT, INSERT, UPDATE, DELETE ON mod_roomreservation_roomswhitelist TO
-  webadm;
-
+  roomreservation;
+GRANT INSERT, UPDATE ON log TO roomreservation;
+GRANT SELECT, INSERT, UPDATE ON log_module TO roomreservation;
+GRANT SELECT ON users TO roomreservation;
+GRANT SELECT ON groups TO roomreservation;
+GRANT SELECT ON rooms TO roomreservation;
+GRANT SELECT, INSERT ON privileges_assign TO roomreservation;
This page took 0.024409 seconds and 4 git commands to generate.