Le mirroring des dépôts vers Github est maintenant natif dans Gitlab (et donc Framagit). Merci de passer à la fonction native pour que nous puissions couper notre solution maison. Détails sur https://docs.gitlab.com/ee/workflow/repository_mirroring.html#pushing-to-a-remote-repository (pensez à supprimer le webhook de notre solution maison).

Commit cc7708b1 by Cyrille37

Projects are closed

parent 1e4f26cd
......@@ -6,6 +6,8 @@ class UserRoleController
{
const STUDENT_ROLE = 'student_role' ;
const PROJECT_ACTIVATED = false ;
public static function isStudent()
{
if( ! \is_user_logged_in() )
......@@ -48,21 +50,20 @@ class UserRoleController
self::STUDENT_ROLE,
'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,
'edit_posts' => false,
'edit_projects' => true,
'delete_projects' => true,
'publish_projects' => true,
'read_private_projects' => false,
'edit_others_projects' => false,
'edit_published_projects'=>true,
'edit_project' => true,
'read_project' => true,
'delete_project' => true,
'upload_files' => false,
'read' => 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