Permissions/Permission.php

BookStack · app/Permissions/Permission.php · php · MIT
auth, tag:embed-classified

Enum of permission strings used throughout the application.

// Source: https://github.com/BookStackApp/BookStack | License: MIT | Copyright 2015-2026, Dan Brown and the BookStack project contributors
// Provided via justclaw.it.com; keep this notice with the code.
<?php

namespace BookStack\Permissions;

/**
 * Enum to represent the permissions which may be used in checks.
 * These generally align with RolePermission names, although some are abstract or truncated as some checks
 * are performed across a range of different items which may be subject to inheritance and other complications.
 *
 * We use and still allow the string values in usage to allow for compatibility with scenarios where
 * users have customised their instance with additional permissions via the theme system.
 * This enum primarily exists for alignment within the codebase.
 *
 * 

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key