set the permission for delete button in the Details form.

How to set the permission for delete button in the Details form.?

For example Admin only can do delete.
general users cant do that.

i’m using php. passing the user credential to every page as session variable.
ex: $_SESSION[user];

How to set the permission?
help me…

Check
docs.dhtmlx.com/doku.php?id=dhtm … r:security

if ($_SESSION[user] != "admin") $scheduler->access->deny("delete");

It will not remove delete button from client side, but will prevent real event deletion from DB

Hi,

For preventing edit operation

if ($_SESSION[user] != “admin”){
$scheduler->access->deny(“edit”);
}

is it correct? becoz its not working…

thanks in advance…

Correct would be

$scheduler->access->deny("update");

Sorry for inconvenience, documentation is updated