mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 09:56:38 +02:00
MDL-14978 removed obsoleted isadmin()
This commit is contained in:
parent
72f563b91c
commit
e3c7f155d8
23 changed files with 432 additions and 263 deletions
|
@ -114,7 +114,7 @@
|
|||
//get students in conjunction with groupmode
|
||||
if($groupmode > 0) {
|
||||
if($SESSION->feedback->lstgroupid == -2) {
|
||||
if(isadmin()) {
|
||||
if(has_capability('moodle/site:doanything', get_context_instance(CONTEXT_SYSTEM))) {
|
||||
$mygroupid = false;
|
||||
$SESSION->feedback->lstgroupid = false;
|
||||
}else{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue