diff --git a/CourseToolsPlugin.php b/CourseToolsPlugin.php index bdb1234..88e362b 100644 --- a/CourseToolsPlugin.php +++ b/CourseToolsPlugin.php @@ -53,7 +53,7 @@ public function hookDefineAcl($args) $acl->allow('student', 'Elements', 'element-form'); # Set student permissions on Simple Pages - if (plugin_is_active("SimplePages")) { + if ($acl->has('SimplePages_Index') && $acl->has('SimplePages_Page')) { if (get_option('simple-page-access')) { $acl->allow('student', array('SimplePages_Index', 'SimplePages_Page')); }