forked from ZwiiCMS-Team/ZwiiCampus
1.6.00 Espaces de l'auteur author devient tutor
This commit is contained in:
parent
91e4a4047c
commit
3b5ddb5a3f
@ -1787,7 +1787,7 @@ class course extends common
|
|||||||
||
|
||
|
||||||
( // Permission d'accèder aux esapces dans lesquels le membre est inscrits avec les
|
( // Permission d'accèder aux esapces dans lesquels le membre est inscrits avec les
|
||||||
$this->getData(['enrolment', $courseId])
|
$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]))
|
&& array_key_exists($this->getUser('id'), $this->getData(['enrolment', $courseId]))
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
@ -241,18 +241,18 @@ class init extends common
|
|||||||
'chmod' => false
|
'chmod' => false
|
||||||
],
|
],
|
||||||
'course' => [
|
'course' => [
|
||||||
"author" => false,
|
'tutor' => false,
|
||||||
"index" => false,
|
'index' => false,
|
||||||
"manage" => false,
|
'manage' => false,
|
||||||
"users" => false,
|
'users' => false,
|
||||||
"userHistory" => false,
|
'userHistory' => false,
|
||||||
"userHistoryExport" => false,
|
'userHistoryExport' => false,
|
||||||
"usersAdd" => false,
|
'usersAdd' => false,
|
||||||
"userDelete" => false,
|
'userDelete' => false,
|
||||||
"usersDelete" => false,
|
'usersDelete' => false,
|
||||||
"edit" => false,
|
'edit' => false,
|
||||||
"backup" => false,
|
'backup' => false,
|
||||||
"restore" => false
|
'restore' => false
|
||||||
],
|
],
|
||||||
'folder' => [
|
'folder' => [
|
||||||
'create' => false,
|
'create' => false,
|
||||||
@ -336,18 +336,18 @@ class init extends common
|
|||||||
'chmod' => false
|
'chmod' => false
|
||||||
],
|
],
|
||||||
'course' => [
|
'course' => [
|
||||||
"author" => false,
|
'tutor' => false,
|
||||||
"index" => false,
|
'index' => false,
|
||||||
"manage" => false,
|
'manage' => false,
|
||||||
"users" => false,
|
'users' => false,
|
||||||
"userHistory" => false,
|
'userHistory' => false,
|
||||||
"userHistoryExport" => false,
|
'userHistoryExport' => false,
|
||||||
"usersAdd" => false,
|
'usersAdd' => false,
|
||||||
"userDelete" => false,
|
'userDelete' => false,
|
||||||
"usersDelete" => false,
|
'usersDelete' => false,
|
||||||
"edit" => false,
|
'edit' => false,
|
||||||
"backup" => false,
|
'backup' => false,
|
||||||
"restore" => false
|
'restore' => false
|
||||||
],
|
],
|
||||||
'folder' => [
|
'folder' => [
|
||||||
'create' => false,
|
'create' => false,
|
||||||
@ -436,18 +436,18 @@ class init extends common
|
|||||||
'chmod' => false
|
'chmod' => false
|
||||||
],
|
],
|
||||||
'course' => [
|
'course' => [
|
||||||
"author" => true,
|
'tutor' => true,
|
||||||
"index" => true,
|
'index' => true,
|
||||||
"manage" => true,
|
'manage' => true,
|
||||||
"users" => true,
|
'users' => true,
|
||||||
"userHistory" => true,
|
'userHistory' => true,
|
||||||
"userHistoryExport" => true,
|
'userHistoryExport' => true,
|
||||||
"usersAdd" => true,
|
'usersAdd' => true,
|
||||||
"userDelete" => false,
|
'userDelete' => false,
|
||||||
"usersDelete" => false,
|
'usersDelete' => false,
|
||||||
"edit" => false,
|
'edit' => false,
|
||||||
"backup" => false,
|
'backup' => false,
|
||||||
"restore" => false
|
'restore' => false
|
||||||
],
|
],
|
||||||
'folder' => [
|
'folder' => [
|
||||||
'create' => false,
|
'create' => false,
|
||||||
@ -532,18 +532,18 @@ class init extends common
|
|||||||
'chmod' => true
|
'chmod' => true
|
||||||
],
|
],
|
||||||
'course' => [
|
'course' => [
|
||||||
"author" => false,
|
'tutor' => false,
|
||||||
"index" => true,
|
'index' => true,
|
||||||
"manage" => true,
|
'manage' => true,
|
||||||
"users" => true,
|
'users' => true,
|
||||||
"userHistory" => true,
|
'userHistory' => true,
|
||||||
"userHistoryExport" => true,
|
'userHistoryExport' => true,
|
||||||
"usersAdd" => true,
|
'usersAdd' => true,
|
||||||
"userDelete" => true,
|
'userDelete' => true,
|
||||||
"usersDelete" => true,
|
'usersDelete' => true,
|
||||||
"edit" => true,
|
'edit' => true,
|
||||||
"backup" => true,
|
'backup' => true,
|
||||||
"restore" => true
|
'restore' => true
|
||||||
],
|
],
|
||||||
'folder' => [
|
'folder' => [
|
||||||
'create' => true,
|
'create' => true,
|
||||||
|
@ -707,7 +707,7 @@ class user extends common
|
|||||||
'edit' => $this->getInput('profilEditUserEdit', helper::FILTER_BOOLEAN),
|
'edit' => $this->getInput('profilEditUserEdit', helper::FILTER_BOOLEAN),
|
||||||
],
|
],
|
||||||
'course' => [
|
'course' => [
|
||||||
'author' => $this->getInput('profilEditCourseAuthor', helper::FILTER_BOOLEAN),
|
'tutor' => $this->getInput('profilEditCourseTutor', helper::FILTER_BOOLEAN),
|
||||||
'index' => $this->getInput('profilEditCourseUsers', helper::FILTER_BOOLEAN)
|
'index' => $this->getInput('profilEditCourseUsers', helper::FILTER_BOOLEAN)
|
||||||
|| $this->getInput('profilEditCourseUserHistory', helper::FILTER_BOOLEAN)
|
|| $this->getInput('profilEditCourseUserHistory', helper::FILTER_BOOLEAN)
|
||||||
|| $this->getInput('profilEditCourseUserExport', helper::FILTER_BOOLEAN)
|
|| $this->getInput('profilEditCourseUserExport', helper::FILTER_BOOLEAN)
|
||||||
|
@ -88,8 +88,8 @@
|
|||||||
</h4>
|
</h4>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col6">
|
<div class="col6">
|
||||||
<?php echo template::checkbox('profilEditCourseAuthor', true, 'Gestion limitée aux espaces du propriétaire', [
|
<?php echo template::checkbox('profilEditCourseTutor', true, 'Gestion étendue aux espaces du participant', [
|
||||||
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'course', 'author'])
|
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'course', 'tutor'])
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user