This topic is locked
[SOLVED]

Click actions

12/1/2021 5:39:12 PM
PHPRunner General questions
T
taumic author

Hello,

I have enabled "Click Actions" on a table field.
But I want that users with a certain group membership can't trigger them.

Can someone please show me the right way ?

Thanks in advance

Michael

admin 12/2/2021

Here are a couple of ways you can make it work for you.

  1. Depends on what kind of click action you perform. If you created an AJAX code snippet to be executed after the click then in the Server part of the event you can check user's group and act accordingly.


  2. Or you can create different pages for different user groups and provide access to the relevant page via User Group Permissions.



T
taumic author 12/3/2021

Hello,
thank you very much for your answer, admin.

I have now solved this with a button on the list line. I can suppress this more easily with

EVENTS- before display:

if ( $_SESSION['gruppe'] <> "user" )
{
$pageObject->hideItem("custom_button1");
}

Michael