File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
module/Applications/src/Listener Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 17
17
use Core \Mail \MailService ;
18
18
use Applications \Listener \Events \ApplicationEvent ;
19
19
use Applications \Options \ModuleOptions ;
20
+ use Auth \Entity \UserInterface ;
20
21
use Organizations \Entity \EmployeeInterface ;
21
22
use Organizations \Entity \EmployeePermissionsInterface ;
22
23
@@ -102,7 +103,9 @@ protected function sendRecruiterMails()
102
103
$ recruiters = $ org ->getEmployeesByRole (EmployeeInterface::ROLE_RECRUITER );
103
104
/** @var \Organizations\Entity\Employee $recruiter */
104
105
foreach ($ recruiters as $ recruiter ) {
105
- if (!$ recruiter ->getPermissions ()->isAllowed (EmployeePermissionsInterface::APPLICATIONS_CHANGE )) {
106
+ if (!$ recruiter ->getPermissions ()->isAllowed (EmployeePermissionsInterface::APPLICATIONS_CHANGE )
107
+ || $ recruiter ->getUser ()->getRole () != UserInterface::ROLE_RECRUITER
108
+ ) {
106
109
continue ;
107
110
}
108
111
You can’t perform that action at this time.
0 commit comments