mirror of https://github.com/itflow-org/itflow
Hide the client actions (edit/delete) button for non-admins - they aren't able to use the actions anyway as post.php enforces an admin rolecheck
This commit is contained in:
parent
63b8d9a16a
commit
1917b3413c
|
|
@ -320,7 +320,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||
<?php } ?>
|
||||
|
||||
<!-- Show actions for Admin role only -->
|
||||
<?php //if($session_user_role == 3) { ?>
|
||||
<?php if($session_user_role == 3) { ?>
|
||||
<td>
|
||||
<div class="dropdown dropleft text-center">
|
||||
<button class="btn btn-secondary btn-sm" type="button" data-toggle="dropdown">
|
||||
|
|
@ -335,7 +335,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<?php //} ?>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
|
|
|
|||
Loading…
Reference in New Issue