. // }}} /** * User role enum * * @category User * @package GNUsocial * * @author Hugo Sales * @copyright 2020-2021 Free Software Foundation, Inc http://www.fsf.org * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later */ namespace App\Core; use App\Util\Bitmap; // The domain of this Bitmap are Actors // TODO: role permissions configuration and sandbox system, probably an AffiliationPlugin class ActorLocalRoles extends Bitmap { // No permissions at all public const NONE = 0; // Can view and direct messages public const VISITOR = 1; // Can Participate public const PARTICIPANT = 2; // Privileged Access public const MODERATOR = 4; // System Administrator public const OPERATOR = 8; public const PREFIX = 'ROLE_'; }