mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Now if user can't write in groups delete button desapears. Ticket#3352
This commit is contained in:
parent
b9875e8013
commit
46dc03dcac
@ -188,10 +188,12 @@ if (!empty ($graphs)) {
|
|||||||
echo "<td>";
|
echo "<td>";
|
||||||
echo "<div style='float: right;'>";
|
echo "<div style='float: right;'>";
|
||||||
if (!empty($graphs)){
|
if (!empty($graphs)){
|
||||||
echo "<form method='post' style='float:right;' action='index.php?sec=reporting&sec2=godmode/reporting/graphs'>";
|
if (check_acl ($config['id_user'], 0, "RW") && users_can_manage_group_all($graph['id_group'])) {
|
||||||
html_print_input_hidden('multiple_delete', 1);
|
echo "<form method='post' style='float:right;' action='index.php?sec=reporting&sec2=godmode/reporting/graphs'>";
|
||||||
html_print_submit_button(__('Delete'), 'delete_btn', false, 'class="sub delete"');
|
html_print_input_hidden('multiple_delete', 1);
|
||||||
echo "</form>";
|
html_print_submit_button(__('Delete'), 'delete_btn', false, 'class="sub delete"');
|
||||||
|
echo "</form>";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (check_acl ($config['id_user'], 0, "RW")) {
|
if (check_acl ($config['id_user'], 0, "RW")) {
|
||||||
echo '<form method="post" style="float:right;" action="index.php?sec=reporting&sec2=godmode/reporting/graph_builder">';
|
echo '<form method="post" style="float:right;" action="index.php?sec=reporting&sec2=godmode/reporting/graph_builder">';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user