Changeset 522 for trunk/phpbms/include
- Timestamp:
- 05/07/09 17:21:06 (3 years ago)
- Files:
-
- 1 modified
-
trunk/phpbms/include/common_functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpbms/include/common_functions.php
r521 r522 210 210 } 211 211 212 function hasRights($roleid,$ checkForAdmin = true){212 function hasRights($roleid,$fullAccessAdmin = true){ 213 213 $hasrights=false; 214 214 215 if($_SESSION["userinfo"]["admin"]==1 && $checkForAdmin)215 if($_SESSION["userinfo"]["admin"]==1 && ($fullAccessAdmin || $roleid == -100)) 216 216 $hasrights=true; 217 elseif($_SESSION["userinfo"]["admin"] == 1 && $roleid == -100)//-100 is a special value for admin218 $hasrights = true;219 217 elseif($roleid==0) 220 218 $hasrights=true;