require_once("user.inc");
require_once("sec/secure.inc");
+db_user("roomreservation");
+
/**
* @page errorcodes Error Codes
* @{
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
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 */
+CREATE USER roomreservation;
+
--
-- Table with rooms allowed for booking
--
--
-- 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;