phpScheduleIt
May 19, 2013, 10:28:50 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: phpScheduleIt 2.4.2 has been released!
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: How do I lock out users from changing reservation after approval?  (Read 616 times)
iplayitofflegit
Newbie
*

Karma: 0
Posts: 1


« on: January 20, 2011, 12:54:53 AM »

We use phpScheduleIt in an Equipment Room environment. There is an approval process in phpScheduleIt that I would like to enhance.  I would like to disallow the user permission of altering a reservation after it is approved. If the reservation is approved, then disallow user from editing the reservation. Admins should still be able to manage the Reservation.

This is a simpler work around than creating a whole new Check In / Check Out module, since any resource that is open / pending would be assumed checked in, anything approved is therefore checked out, anything blacked out is under repair or temporarily reassigned to another facility. Locking the user out from changing the reservation is essential.

How can I make this change? I'm a PHP newbie but get down with the OOP.

Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5403


WWW
« Reply #1 on: January 31, 2011, 01:37:34 PM »

Right now the only way to tell if a reservation was approved is to infer it by looking at the approval flag of the resource and the is_pending status of the reservation.

If the resource requires approval but the reservation is not pending, that means that the reservation was approved.  You can make this check along with all of the other display checks in lib\reservation.class.php
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!