Revision: 1324
http://mrbs.svn.sourceforge.net/mrbs/?rev=1324&view=rev
Author: cimorrison
Date: 2010-04-15 13:12:32 +0000 (Thu, 15 Apr 2010)
Log Message:
-----------
Fixed a problem with provisional bookings. (The problem doesn't affect
standard MRBS, but becomes apparent if you try and extend MRBS using the
concept of room admins who can approve bookings for certain rooms).
Modified Paths:
--------------
mrbs/trunk/web/mrbs_auth.inc
Modified: mrbs/trunk/web/mrbs_auth.inc
===================================================================
--- mrbs/trunk/web/mrbs_auth.inc 2010-04-14 22:06:09 UTC (rev 1323)
+++ mrbs/trunk/web/mrbs_auth.inc 2010-04-15 13:12:32 UTC (rev 1324)
@@ -47,9 +47,6 @@
* $user - Who wants to modify it
* $room - The id of the room that the entry is in
*
- * $room is ignored at the moment, but is provided for
- * future enhancements
- *
* Returns:
* 0 - The user does not have the required access
* non-zero - The user has the required access
@@ -61,12 +58,13 @@
{
return 1;
}
-
- if(authGetUserLevel($user) >= 2)
+
+ // Otherwise you have to be a (booking) admin for this room
+ if (auth_book_admin($user, $room))
{
return 1;
}
-
+
// Unathorised access
return 0;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits