mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-40723 use guess_if_creator_will_have_course_capability() for the new weird function
This commit is contained in:
parent
dba745265f
commit
54d5308ef0
4 changed files with 28 additions and 28 deletions
|
@ -560,7 +560,7 @@ function has_all_capabilities(array $capabilities, context $context, $user = nul
|
|||
*
|
||||
* @throws coding_exception if different type of course submitted
|
||||
*/
|
||||
function will_have_course_capability($capability, context $context, $user = null) {
|
||||
function guess_if_creator_will_have_course_capability($capability, context $context, $user = null) {
|
||||
global $CFG;
|
||||
|
||||
if ($context->contextlevel != CONTEXT_COURSE and $context->contextlevel != CONTEXT_COURSECAT) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue