diff --git a/Services/FileServices/classes/class.ilFileServicesSettings.php b/Services/FileServices/classes/class.ilFileServicesSettings.php index 9090e4511d7f..cd3fe7f4b505 100644 --- a/Services/FileServices/classes/class.ilFileServicesSettings.php +++ b/Services/FileServices/classes/class.ilFileServicesSettings.php @@ -62,6 +62,7 @@ private function determineByPass(): bool { global $DIC; return $DIC->isDependencyAvailable('rbac') + && isset($DIC["rbacsystem"]) && $DIC->rbac()->system()->checkAccess( 'upload_blacklisted_files', $this->file_admin_ref_id