phpScheduleIt
May 26, 2013, 03:10:23 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: Account does not appear in All Users event list when logged in with admin accoun  (Read 1084 times)
Gremdel
Newbie
*

Karma: 0
Posts: 7


« on: November 10, 2009, 10:29:14 PM »

Maybe this is an implementation choice, I haven't examined the code.

PHP version: 5.2.6
Database server and version: MySQL v. 5.0.77
Web server and version: Apache
Browser vendor and version: Firefox 3.5.3 for OS X

Description of bug: When logged in as an administrative user, when I select the Participants tab in an Event Detail popup, my account does not appear in the All Users list of an event reserved by another users.  Other admin users do however and when I log in under their accounts, my account appears.
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5419


WWW
« Reply #1 on: November 17, 2009, 01:21:18 PM »

If I'm understanding this correctly then yes, this is by design.  You are not able to add yourself as a participant since you are the reservation owner.
Logged
Gremdel
Newbie
*

Karma: 0
Posts: 7


« Reply #2 on: November 22, 2009, 02:05:04 AM »

It also happens when I've selected an event that I am not the owner. 
Logged
Gremdel
Newbie
*

Karma: 0
Posts: 7


« Reply #3 on: November 23, 2009, 02:30:16 AM »

I made a change in Reservation.class.php:

from:
$all_users = ($is_owner) ? $this->db->get_non_participating_users($this->id, Auth::getCurrentID()) : array();

to:
$all_users = ($is_owner) ? $this->db->get_non_participating_users($this->id, $this->user) : array();

And that seems to fix it for me.  Didn't test it too much.
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!