The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (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
Using UserSpice permissions in my own code
#7
$master_account is an array that was omitted from a few versions of Userspice but has been recently readded. You can edit your init.php file to add it in. Any account ID's in the array will have access to all pages, regardless of their permissions. From my init.php:

// Set Time Zone string
$timezone_string="America/Los_Angeles";
date_default_timezone_set($timezone_string);

// Adding more ids to this array allows people to access everything, whether offline or not. Use caution.
$master_account = [1];

I don't think it matters quite where in the file you place it, but mine is after the timezone.
  Reply


Messages In This Thread
Using UserSpice permissions in my own code - by karsen - 05-11-2017, 07:34 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)