Commit cc7708b1 by Cyrille37

Projects are closed

parent 1e4f26cd
...@@ -6,6 +6,8 @@ class UserRoleController ...@@ -6,6 +6,8 @@ class UserRoleController
{ {
const STUDENT_ROLE = 'student_role' ; const STUDENT_ROLE = 'student_role' ;
const PROJECT_ACTIVATED = false ;
public static function isStudent() public static function isStudent()
{ {
if( ! \is_user_logged_in() ) if( ! \is_user_logged_in() )
...@@ -48,21 +50,20 @@ class UserRoleController ...@@ -48,21 +50,20 @@ class UserRoleController
self::STUDENT_ROLE, self::STUDENT_ROLE,
'Etudiant', 'Etudiant',
[ [
'read_project' => true,
'edit_projects' => self::PROJECT_ACTIVATED,
'delete_projects' => self::PROJECT_ACTIVATED,
'publish_projects' => self::PROJECT_ACTIVATED,
'edit_published_projects'=>self::PROJECT_ACTIVATED,
'edit_project' => self::PROJECT_ACTIVATED,
'delete_project' => self::PROJECT_ACTIVATED,
'read' => true,
//'delete_posts' => false, //'delete_posts' => false,
'edit_posts' => false, 'edit_posts' => false,
'edit_projects' => true,
'delete_projects' => true,
'publish_projects' => true,
'read_private_projects' => false, 'read_private_projects' => false,
'edit_others_projects' => false, 'edit_others_projects' => false,
'edit_published_projects'=>true,
'edit_project' => true,
'read_project' => true,
'delete_project' => true,
'upload_files' => false, 'upload_files' => false,
'read' => true,
'level_1' => true 'level_1' => true
] ]
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment