Commit 64a62c24 authored by Melissa Draper's avatar Melissa Draper
Browse files

Move group.php require_once call to top of lib.php (bug #800025)



group.php functions are called in (at least) two places in the file
but previously only required immediately before the first instance.
This will cover all instances it's needed.

Change-Id: I708bf88125859288640da33f1c805aa5e76ad8ca
Signed-off-by: default avatarMelissa Draper <melissa@catalyst.net.nz>
parent 9c26c8f8
......@@ -26,6 +26,7 @@
*/
defined('INTERNAL') || die();
require_once(get_config('libroot') . 'group.php');
/**
* Base artefact plugin class
......@@ -813,7 +814,6 @@ abstract class ArtefactType {
if (!$this->group) {
return;
}
require_once(get_config('libroot') . 'group.php');
if (!isset($this->rolepermissions)) {
$this->rolepermissions = group_get_default_artefact_permissions($this->group);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment