Skip to content
Snippets Groups Projects
Unverified Commit 51bc96ee authored by Peter Rotich's avatar Peter Rotich Committed by GitHub
Browse files

Merge pull request #5077 from protich/issue/4967

Instantiate  StaffDeptAccess
parents 2ce7fdff 390ec3e0
No related branches found
No related tags found
No related merge requests found
...@@ -431,7 +431,7 @@ implements AuthenticatedUser, EmailContact, TemplateVariable, Searchable { ...@@ -431,7 +431,7 @@ implements AuthenticatedUser, EmailContact, TemplateVariable, Searchable {
// Grant access to the current department // Grant access to the current department
$old = $this->dept_id; $old = $this->dept_id;
if ($eavesdrop) { if ($eavesdrop) {
$da = StaffDeptAccess::create(array( $da = new StaffDeptAccess(array(
'dept_id' => $old, 'dept_id' => $old,
'role_id' => $this->role_id, 'role_id' => $this->role_id,
)); ));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment