mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
rss MDL-24508 fixed guest access to rss feeds
This commit is contained in:
parent
831399c404
commit
c637291997
2 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@
|
|||
return null;
|
||||
}
|
||||
|
||||
if (!is_enrolled($context, null, 'mod/data:managetemplates')) {
|
||||
if (!is_enrolled($context, null, 'mod/data:managetemplates') && !isguestuser()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
//check capabilities
|
||||
//glossary module doesn't require any capabilities to view glossary entries (aside from being logged in)
|
||||
if (!is_enrolled($context)) {
|
||||
if (!is_enrolled($context) && !isguestuser()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue