phpScheduleIt
May 24, 2013, 08:47:27 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: preventing users from viewing other reservations  (Read 1219 times)
psi_newbie
Newbie
*

Karma: 0
Posts: 39


« on: January 26, 2012, 06:25:46 PM »

Please how can i make sure users are only allowed to view/edit/delete their own reservation and not even view other users reservations at all
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5419


WWW
« Reply #1 on: January 31, 2012, 01:22:28 PM »

The simplest way is to enable privacyMode in the config file.
Logged
stevej31088
Newbie
*

Karma: 0
Posts: 5


« Reply #2 on: February 17, 2012, 05:58:22 PM »

Seems like that line is missing in the config.php file of the 2.0 version.  I tried adding several variations, such as:

$conf['app']['privacyMode'] = '1';
and
$conf['settings']['reservation']['privacyMode'] = 'true';

Nothing worked. Should another snippet be placed on other pages?  
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5419


WWW
« Reply #3 on: February 21, 2012, 12:31:46 PM »

I haven't incorporated privacy mode into 2.0 yet. This should be included as part of 2.1.
Logged
stevej31088
Newbie
*

Karma: 0
Posts: 5


« Reply #4 on: February 22, 2012, 11:02:20 AM »

For anyone interested, I'm using a work around with the 2.0 version by:

1. Editing the ../Web/css/schedule.css file - using the same background and font color for the reserved, and pending files.
   
2. Editing the tpl/schedule.tpl file - removing the css attribute in the respective slot "legend" and inserting images (same background color, with readable text)

3. Editing the tpl/Reservation files to ensure unwanted info is not seen by other users.

Hope that helps.
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5419


WWW
« Reply #5 on: February 27, 2012, 01:03:31 PM »

Nice. Thanks!
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!