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