The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Function Level Access Control
#8
You can always use the (poorly named) checkMenu function to hide/show content on the page based on access level, so if you have a regular page you can pop in admin only features by putting in...

Code:
if (checkMenu(2,$user->data()->id)){
Code:
//special admin-only code goes here...
Code:
}

  Reply


Messages In This Thread
Function Level Access Control - by Angel - 09-26-2016, 02:41 PM
RE: Function Level Access Control - by karmarpgs - 11-16-2018, 09:52 PM
Function Level Access Control - by brian - 09-26-2016, 02:44 PM
Function Level Access Control - by Angel - 09-26-2016, 03:07 PM
Function Level Access Control - by Angel - 09-26-2016, 03:09 PM
Function Level Access Control - by brian - 09-26-2016, 05:46 PM
Function Level Access Control - by Steve_Dickson - 11-15-2016, 08:54 PM
Function Level Access Control - by meetmec12 - 01-03-2017, 08:09 PM
Function Level Access Control - by mudmin - 01-03-2017, 10:44 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)