Can't access current user access level

By gregThomas - August 7, 2013

Hi Tim,

This feature was removed in the recent release of CMS Builder. You can easily get this information again by adding this line were you need to check a users access level:

$CURRENT_USER['accessList'] = array_groupBy(mysql_select("_accessList", "userNum = '".$CURRENT_USER['num']."'"), 'tableName'); 

So this line will add the accessList array to the users $CURRENT_USER variable. 

Let me know if you have any questions.

Thanks!

Greg

Greg Thomas







PHP Programmer - interactivetools.com

By goodonyx - August 8, 2013

Works great. Thank you!