How to hide delete button of Visual phone book

  1. 11 years ago

    Hi,

    I find the visual phone book in FOP2 is very useful to use as a organization wide phone book. But only pitfall I find there
    is that any one can delete records added as public. So can anybody tell me how to block access to delete button for
    selected users.
    Thanks in advance.

    LSD

  2. admin

    13 Jul 2013 Administrator

    Edit the phonebook.php file and change

    $grid->allow_delete(true);

    to

    $grid->allow_delete(false);

    Best regards,

  3. Hi Nicolás,

    Thanks for the Tip. It worked.

    Also I'd like to make a request to include this to user permissions (to enable and disable "delete option") to control
    it with different user levels in future versions.
    Again thanks for the great product.

    LSD

or Sign Up to reply!