edit button only for edit permission
Posted: 2021-05-17 01:03
I have added a button to the table view
This works fin, but it is available to all, even those who do not have edit permissions. How can this be rectified?
Code: Select all
jQuery(function () {
var tv = new AppGiniTableView();
// additional buttons for table view
// add "open" button
var tablename = AppGini.currentTableName();
var url_open = tablename + "_view.php?SelectedID=%ID%";
tv.addLink(url_open, "pencil", "Edit", Variation.primary);
tv.setWidth(0, 20);
});