Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
iena
iena-course-format
Commits
36e7aed5
Commit
36e7aed5
authored
Feb 14, 2019
by
Thomas Fradet
Browse files
Merge branch 'master' of
https://gitlab.univ-lorraine.fr/iena/course-format
parents
d12e149e
dd27fa61
Changes
1
Hide whitespace changes
Inline
Side-by-side
send_message_post.php
View file @
36e7aed5
...
...
@@ -41,7 +41,7 @@
$PAGE
->
set_pagelayout
(
'course'
);
$PAGE
->
set_url
(
$url
);
if
(
!
has_capability
(
'
moodle/course:update
'
,
$context
=
context_course
::
instance
(
$courseID
),
$USER
->
id
))
{
if
(
!
has_capability
(
'
course/iena:suivi
'
,
$context
=
context_course
::
instance
(
$courseID
),
$USER
->
id
))
{
$link
=
$CFG
->
wwwroot
.
'/course/view.php?id='
.
$courseID
;
header
(
"Location:
{
$link
}
"
);
exit
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment