78
Views
8
Comments
Solved
[Hidden Tests] Hide the edit & save button in employee screen.
hidden-tests
Web icon
Forge asset by Justin James
Application Type
Reactive
Service Studio Version
11.51.0 (Build 54978)
Platform Version
11.15.0 (Build 33590)

Hi,


    We have both Login Users. One is a Manger & One is an Employee. The manager can access view the employee details as well as edit the details. Employees can also view the screen and are unable to edit or delete or delete the details. Employees can open details but not edit or delete the details. What is I am saying Save or edit buttons are not to show employee users.


2019-11-12 17-31-26
Justin James
 
MVP
Solution

Because anyone can view the page source and make it visible if they want. Or they can go into the JavaScript and adjust the values of whatever you used to check the roles. Or make a call to the backing service that the button uses, and use the button's code even if the button itself is not on the screen.

Never depend on hiding screen elements for security in Reactive... it's not secure.

J.Ja

2024-05-14 05-24-39
Charith

hi ,

simple solution is  to set visible=True for save/edit button if the user is manager


2021-12-20 07-40-28
Prabu V

Hi, If the employee accesses the page. He can only view the screen only. Not showing the save or edit button for the employee(user)

2025-02-27 13-13-03
Poonam Agarwal

Hi prabu v

i have attached a oml file . please take a reference from it . 

Happy coding!

TestingApplication.oml
2019-11-12 17-31-26
Justin James
 
MVP

In a Reactive app, this is NOT secure.

J.Ja

2025-02-27 13-13-03
Poonam Agarwal

Hi Justin 

could you please tell us for what you are saying that this is not secure.

Thanks!

2019-11-12 17-31-26
Justin James
 
MVP
Solution

Because anyone can view the page source and make it visible if they want. Or they can go into the JavaScript and adjust the values of whatever you used to check the roles. Or make a call to the backing service that the button uses, and use the button's code even if the button itself is not on the screen.

Never depend on hiding screen elements for security in Reactive... it's not secure.

J.Ja

2020-06-10 05-06-30
shehroze khan

HI Prabu V ,

if you want to hide buttons according to there roles, then you can enclose that buttons in a container and apply if condition on visible properties of that container ,

Check if that works for you. like and mark as solution.

Thanks 

shehroze khan

2019-11-12 17-31-26
Justin James
 
MVP

This is NOT secure in Reactive. Anyone can view the source and make it visible to click the button.

J.Ja

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.