set deleteallowed option using c/al code

Hi everyone! I need to set the option delete allowed according to the USERID.
My problem is to do this using the code because i don't want to block ALL the users, just a specific understand? My struggle is how to get this page object property in the code..

I want to do something like

IF USERID='john' THEN
PAGE.deleteallowed=FALSE;

I know that PAGE.deleteallowed don't exist but I need something to make this work.

Answers

  • KTA8KTA8 Member Posts: 301
    I think it would be better doing it based on the role.
  • catiamatos1991catiamatos1991 Member Posts: 158
    How can I block a user from delete liens of a page inside another?
Sign In or Register to comment.