Skip to content
Snippets Groups Projects
Commit d0a27a79 authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge branch 'feature/extended_access+installer' into develop-next

parents 308ca303 08a26be0
No related branches found
No related tags found
No related merge requests found
...@@ -210,6 +210,18 @@ class Installer extends SetupWizard { ...@@ -210,6 +210,18 @@ class Installer extends SetupWizard {
return false; return false;
} }
// Extended Access
foreach (Dept::objects()
->filter(Q::not(array('id' => $dept_id)))
->values_flat('id') as $row) {
$da = new StaffDeptAccess(array(
'dept_id' => $row[0],
'role_id' => $role_id
));
$staff->dept_access->add($da);
}
$staff->dept_access->saveAll();
// Create default emails! // Create default emails!
$email = $vars['email']; $email = $vars['email'];
list(,$domain) = explode('@', $vars['email']); list(,$domain) = explode('@', $vars['email']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment