mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-08-26 20:22:18 +00:00
![Dan Brown](/assets/img/avatar_default.png)
Is a tweak upon the existing approach, mainly to store and query role permission access in a way that allows muli-level states that may override eachother. These states are represented in the new PermissionStatus class. This also simplifies how own permissions are stored and queried, to be part of a single column.
12 lines
191 B
PHP
12 lines
191 B
PHP
<?php
|
|
|
|
namespace BookStack\Auth\Permissions;
|
|
|
|
class PermissionStatus
|
|
{
|
|
const IMPLICIT_DENY = 0;
|
|
const IMPLICIT_ALLOW = 1;
|
|
const EXPLICIT_DENY = 2;
|
|
const EXPLICIT_ALLOW = 3;
|
|
}
|