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

dept_access: Only show access entries with dept

parent 624a4b08
No related branches found
No related tags found
No related merge requests found
......@@ -518,6 +518,7 @@ $('#join_team').find('button').on('click', function() {
<?php
foreach ($staff->dept_access as $dept_access) {
if (!$dept_access->dept_id) continue;
echo sprintf('addAccess(%d, %s, %d, %d, %s);', $dept_access->dept_id,
JsonDataEncoder::encode($dept_access->dept->getName()),
$dept_access->role_id,
......
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