Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
In below script, button is disabled by default based on access, however if i delete the property disabled="disabled" then it gets enabled & user can able to perform actions.

Please do provide solution to restrict it.



HTML
<button type="button" ng-disabled="!transactions.enableAbt || 2==1?true:false" class="btn btn-success" ng-click="transactions.AuthorizeABTTransactions();" disabled="disabled">Authorise ABT</button>


What I have tried:

i tried visible to false but client want to display button with disabled
Posted
Comments
F-ES Sitecore 16-Apr-18 5:16am    
You also have to do the security check at the point where the work is done, just disabling the front-end interface isn't enough.
Member 13356890 16-Apr-18 5:43am    
understood. Thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900