Restrict Delete Button only for admins

Gowtham29
Tera Expert

Hi Everyone,

We have delete button on the release form. I want to make visible that button only for admins. I opened delete ui action on the global table and inserted it on rm_release(Release table) by using Insert and stay option which is available on the form context menu.

The button now is available only for admins, but from admin profile, when i clicked on delete button, no action is happening now. Can someone help me how to resolve this issue ? please do needful. Thank you.

1 ACCEPTED SOLUTION

Ashutosh Munot1
Kilo Patron
Kilo Patron

HI,

I will do it using ACL. You should have delete acl on this table and instead of copying the button and over riding it. Use ACL.

Thanks,
Ashutosh

View solution in original post

5 REPLIES 5

Ct111
Giga Sage

Check the condition tab of UI action ,

it might have something like 

 

gs.hasRole('admin')

 

so remove it and put the role for which you want to make it visible in hasROle

 

Mark my ANSWER as CORRECT and HELPFUL if it works

Dhananjay Pawar
Kilo Sage

Hi,

Can you share the code here?

Thanks,

Dhananjay.

Ashutosh Munot1
Kilo Patron
Kilo Patron

HI,

I will do it using ACL. You should have delete acl on this table and instead of copying the button and over riding it. Use ACL.

Thanks,
Ashutosh

find_real_file.png


Remove this role and add admin here.


Thanks,
Ashutosh