mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 21:27:25 +02:00
Add a security layer to getperms()
This commit is contained in:
@@ -9,9 +9,9 @@
|
||||
* General purpose file
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/class2.php,v $
|
||||
* $Revision: 1.146 $
|
||||
* $Date: 2009-09-25 20:21:30 $
|
||||
* $Author: secretr $
|
||||
* $Revision: 1.147 $
|
||||
* $Date: 2009-09-29 09:25:07 $
|
||||
* $Author: marj_nl_fr $
|
||||
*
|
||||
*/
|
||||
//
|
||||
@@ -1346,7 +1346,7 @@ function check_class($var, $userclass = USERCLASS_LIST, $uid = 0)
|
||||
|
||||
function getperms($arg, $ap = ADMINPERMS)
|
||||
{
|
||||
if (trim($ap) === '')
|
||||
if( ! ADMIN || trim($ap) === '')
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user