#171 auth_book_admin

open
nobody
None
5
2012-07-20
2011-06-22
Anonymous
No

small suggestion:

replace
$is_admin = (authGetUserLevel($user) >= 2);
with
$is_admin = auth_book_admin($user, $room);

In:
edit_entry_handler.php line 165
pending.php line 154

Discussion

  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2011-06-22

    Can also do it on admin.php line 37

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2011-06-22

    and view_entry.php line 118

     
  • Campbell Morrison

    Thanks for these. I'll need to think about them for a bit though and I'm going to be busy on other things for the next few days. In the case of the one for edit_entry_handler, the problem is that multiple rooms can be passed through to edit_entry_handler for booking and while the user might be an admin for one of them he might not be an admin for all of them.

    Campbell

     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks