mirror of
https://github.com/sitelease/sugar-cube-client.git
synced 2025-10-31 20:12:29 +01:00
Added the permission models
This commit is contained in:
37
lib/models/TeamPermission.php
Normal file
37
lib/models/TeamPermission.php
Normal file
@ -0,0 +1,37 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
namespace yii\gitea\models;
|
||||
|
||||
use Enum\{EnumTrait};
|
||||
|
||||
/**
|
||||
* Defines the permission of a Gitea status.
|
||||
*/
|
||||
final class TeamPermission {
|
||||
use EnumTrait;
|
||||
|
||||
/**
|
||||
* @var string The team has the administrator permission.
|
||||
*/
|
||||
const ADMIN = 'admin';
|
||||
|
||||
/**
|
||||
* @var string The team doesn't have any permission.
|
||||
*/
|
||||
const NONE = 'none';
|
||||
|
||||
/**
|
||||
* @var string The team has the owner permission.
|
||||
*/
|
||||
const OWNER = 'owner';
|
||||
|
||||
/**
|
||||
* @var string The team has the read permission.
|
||||
*/
|
||||
const READ = 'read';
|
||||
|
||||
/**
|
||||
* @var string The team has the write permission.
|
||||
*/
|
||||
const WRITE = 'write';
|
||||
}
|
||||
Reference in New Issue
Block a user