Add generic authorization class

This commit is contained in:
Frederic Guillot
2015-11-27 16:24:21 -05:00
parent 19706944dc
commit 91bdf6aaf3
6 changed files with 209 additions and 49 deletions

View File

@@ -0,0 +1,21 @@
<?php
namespace Kanboard\Core\Security;
/**
* Role Definitions
*
* @package security
* @author Frederic Guillot
*/
class Role
{
const APP_ADMIN = 'app-admin';
const APP_MANAGER = 'app-manager';
const APP_USER = 'app-user';
const APP_PUBLIC = 'app-public';
const PROJECT_MANAGER = 'project-manager';
const PROJECT_MEMBER = 'project-member';
const PROJECT_VIEWER = 'project-viewer';
}