Using IsSysAdminUser(), IsSysAdmin()

is there a trick to using the new security objects, everything i try to access returns nothing..

logged in with administrator account == -1, this does not exit the function

    // Page Data Rendered event
    public function pageDataRendered(string &$footer): void
    {
        $footerMsg = "";
        if(IsSysAdminUser()) 
            return;  

same with Security()->IsSysAdmin()

is this only applicable for the hardcoded admin account?

thanks

  1. Note the Page_DataRendered is used to set the $footer (content at the end of the page). Returning there only means there is no $footer, nothing more.
  2. IsSysAdminUser() and Security()->IsSysAdmin() is used to check if the current user is super admin. Your code means: if the current user is super admin, no footer. Is that what you want to do?
  3. You may also check your current user level info by Security()->showUserLevelInfo().