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:
Marcus Hill
2022-12-11 14:41:47 +00:00
parent 63b8d9a16a
commit 1917b3413c
+2 -2
View File
@@ -320,7 +320,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
<?php } ?> <?php } ?>
<!-- Show actions for Admin role only --> <!-- Show actions for Admin role only -->
<?php //if($session_user_role == 3) { ?> <?php if($session_user_role == 3) { ?>
<td> <td>
<div class="dropdown dropleft text-center"> <div class="dropdown dropleft text-center">
<button class="btn btn-secondary btn-sm" type="button" data-toggle="dropdown"> <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>
</div> </div>
</td> </td>
<?php //} ?> <?php } ?>
</tr> </tr>
<?php <?php