Skip to content

Commit

Permalink
conditionally remove user facility restriction
Browse files Browse the repository at this point in the history
  • Loading branch information
sunsetsystems committed Jul 20, 2009
1 parent 0085202 commit 2b67438
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion interface/usergroup/user_admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
sqlStatement("UPDATE users, facility SET users.facility = facility.name WHERE facility.id = '$tqvar' AND users.id = {$_GET["id"]}");
//END (CHEMED)
}
if ($_GET["schedule_facility"]) {
if ($GLOBALS['restrict_user_facility'] && $_GET["schedule_facility"]) {
sqlStatement("delete from users_facility
where tablename='users'
and table_id={$_GET["id"]}
Expand Down Expand Up @@ -181,6 +181,7 @@
</select></td>
</tr>

<?php if ($GLOBALS['restrict_user_facility']) { ?>
<tr>
<td colspan=2>&nbsp;</td>
<td><span class=text><?php xl('Schedule Facilities:', 'e');?></td>
Expand All @@ -204,6 +205,7 @@
</select>
</td>
</tr>
<?php } ?>

<TR>
<TD><span class=text><?php xl('Federal Tax ID','e'); ?>: </span></TD><TD><input type=text name=taxid size=20 value="<?php echo $iter["federaltaxid"]?>"></td>
Expand Down

0 comments on commit 2b67438

Please sign in to comment.