1.6.00 Espaces de l'auteur author devient tutor

This commit is contained in:
Fred Tempez 2024-02-14 08:12:33 +01:00
parent 91e4a4047c
commit 3b5ddb5a3f
4 changed files with 52 additions and 52 deletions

View File

@ -1787,7 +1787,7 @@ class course extends common
||
( // Permission d'accèder aux esapces dans lesquels le membre est inscrits avec les
$this->getData(['enrolment', $courseId])
&& $this->getUser('permission', __CLASS__, 'author') === false
&& $this->getUser('permission', __CLASS__, 'tutor') === true
&& array_key_exists($this->getUser('id'), $this->getData(['enrolment', $courseId]))
)
);

View File

@ -241,18 +241,18 @@ class init extends common
'chmod' => false
],
'course' => [
"author" => false,
"index" => false,
"manage" => false,
"users" => false,
"userHistory" => false,
"userHistoryExport" => false,
"usersAdd" => false,
"userDelete" => false,
"usersDelete" => false,
"edit" => false,
"backup" => false,
"restore" => false
'tutor' => false,
'index' => false,
'manage' => false,
'users' => false,
'userHistory' => false,
'userHistoryExport' => false,
'usersAdd' => false,
'userDelete' => false,
'usersDelete' => false,
'edit' => false,
'backup' => false,
'restore' => false
],
'folder' => [
'create' => false,
@ -336,18 +336,18 @@ class init extends common
'chmod' => false
],
'course' => [
"author" => false,
"index" => false,
"manage" => false,
"users" => false,
"userHistory" => false,
"userHistoryExport" => false,
"usersAdd" => false,
"userDelete" => false,
"usersDelete" => false,
"edit" => false,
"backup" => false,
"restore" => false
'tutor' => false,
'index' => false,
'manage' => false,
'users' => false,
'userHistory' => false,
'userHistoryExport' => false,
'usersAdd' => false,
'userDelete' => false,
'usersDelete' => false,
'edit' => false,
'backup' => false,
'restore' => false
],
'folder' => [
'create' => false,
@ -436,18 +436,18 @@ class init extends common
'chmod' => false
],
'course' => [
"author" => true,
"index" => true,
"manage" => true,
"users" => true,
"userHistory" => true,
"userHistoryExport" => true,
"usersAdd" => true,
"userDelete" => false,
"usersDelete" => false,
"edit" => false,
"backup" => false,
"restore" => false
'tutor' => true,
'index' => true,
'manage' => true,
'users' => true,
'userHistory' => true,
'userHistoryExport' => true,
'usersAdd' => true,
'userDelete' => false,
'usersDelete' => false,
'edit' => false,
'backup' => false,
'restore' => false
],
'folder' => [
'create' => false,
@ -532,18 +532,18 @@ class init extends common
'chmod' => true
],
'course' => [
"author" => false,
"index" => true,
"manage" => true,
"users" => true,
"userHistory" => true,
"userHistoryExport" => true,
"usersAdd" => true,
"userDelete" => true,
"usersDelete" => true,
"edit" => true,
"backup" => true,
"restore" => true
'tutor' => false,
'index' => true,
'manage' => true,
'users' => true,
'userHistory' => true,
'userHistoryExport' => true,
'usersAdd' => true,
'userDelete' => true,
'usersDelete' => true,
'edit' => true,
'backup' => true,
'restore' => true
],
'folder' => [
'create' => true,

View File

@ -707,7 +707,7 @@ class user extends common
'edit' => $this->getInput('profilEditUserEdit', helper::FILTER_BOOLEAN),
],
'course' => [
'author' => $this->getInput('profilEditCourseAuthor', helper::FILTER_BOOLEAN),
'tutor' => $this->getInput('profilEditCourseTutor', helper::FILTER_BOOLEAN),
'index' => $this->getInput('profilEditCourseUsers', helper::FILTER_BOOLEAN)
|| $this->getInput('profilEditCourseUserHistory', helper::FILTER_BOOLEAN)
|| $this->getInput('profilEditCourseUserExport', helper::FILTER_BOOLEAN)

View File

@ -88,8 +88,8 @@
</h4>
<div class="row">
<div class="col6">
<?php echo template::checkbox('profilEditCourseAuthor', true, 'Gestion limitée aux espaces du propriétaire', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'course', 'author'])
<?php echo template::checkbox('profilEditCourseTutor', true, 'Gestion étendue aux espaces du participant', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'course', 'tutor'])
]); ?>
</div>
</div>