id(), $user->username(), $user->colour() ); // Set the common permissions Auth::SetCommonPermissions( $user->mainRank()['hierarchy'], Perms::check('MANAGE', 'USE_MANAGE', $uid, 1) ? 1 : 0, Perms::check('SITE', 'CREATE_BACKGROUND', $uid, 1) ? 1 : 0, Perms::check('SITE', 'CHANGE_USERNAME', $uid, 1) ? 1 : 0, Perms::check('SITE', 'MULTIPLE_GROUPS', $uid, 1) ? 2 : ( Perms::check('SITE', 'CREATE_GROUP', $uid, 1) ? 1 : 0 ) ); Auth::Accept(); } else { Auth::Deny(); } } // Serve the authentication data Auth::Serve();