Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b593d49
)
MDL-16349 we can now safely switch to the guest role
author
Petr Skoda
<skodak@moodle.org>
Sat, 9 Oct 2010 19:55:18 +0000
(19:55 +0000)
committer
Petr Skoda
<skodak@moodle.org>
Sat, 9 Oct 2010 19:55:18 +0000
(19:55 +0000)
lib/navigationlib.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/navigationlib.php
b/lib/navigationlib.php
index
f24fd62
..
6833393
100644
(file)
--- a/
lib/navigationlib.php
+++ b/
lib/navigationlib.php
@@
-2924,7
+2924,7
@@
class settings_navigation extends navigation_node {
$availableroles = get_switchable_roles($coursecontext);
if (is_array($availableroles)) {
foreach ($availableroles as $key=>$role) {
- if ($
key == $CFG->guestroleid || $
assumedrole===(int)$key) {
+ if ($assumedrole===(int)$key) {
continue;
}
$roles[$key] = $role;