diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-11-27 16:24:21 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-11-27 16:24:21 -0500 |
commit | 91bdf6aaf3cda52a43c35ce22f5e25537684cb56 (patch) | |
tree | 567631b186191508d7cc40f914ffe83740f0d355 /app/Core/Security/Role.php | |
parent | 19706944dc94c4fe1784af434f5f2e27a3c8130c (diff) |
Add generic authorization class
Diffstat (limited to 'app/Core/Security/Role.php')
-rw-r--r-- | app/Core/Security/Role.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/app/Core/Security/Role.php b/app/Core/Security/Role.php new file mode 100644 index 00000000..079ce14b --- /dev/null +++ b/app/Core/Security/Role.php @@ -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'; +} |