Skip to content
Snippets Groups Projects
Commit 6085ba40 authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-7252: Fix getting uw users

parent 0eb7c302
No related branches found
No related tags found
No related merge requests found
...@@ -203,10 +203,7 @@ class AdmissionRequirementsFormUsers extends ConfigFormBase { ...@@ -203,10 +203,7 @@ class AdmissionRequirementsFormUsers extends ConfigFormBase {
count($uw_roles) > 0 && count($uw_roles) > 0 &&
$this->uwCustomFormsService->checkIfUserHasUwRole($uw_roles) && $this->uwCustomFormsService->checkIfUserHasUwRole($uw_roles) &&
$uw_user->id() !== '1' && $uw_user->id() !== '1' &&
$uw_user->id() !== 0 && $uw_user->id() !== 0
!$uw_user->isAnonymous() &&
!in_array('administrator', $uw_roles) &&
!in_array('uw_role_site_owner', $uw_roles)
) { ) {
$users[] = $uw_user; $users[] = $uw_user;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment