Access Control
2 access controls for LightSwitch, Authentication type and Permissions.
Authentication Types
There are 2 authentication types, Windows & Forms.
In this example, we use Forms authentication.
Permissions
Add 4 permissions for practice, CanAddCustomer, CanEditCustomer, CanViewCustomer and CanAddPhone
Granted for debug is a flag to allow developer to run/execute while programming
We can write code on Access Control Methods of an ApplicationData, for example, Customers.
Check if current user has pre-defined permission (CanAddCustomer) on customer insert action
It will show an Error if user does not have that permission
沒有留言:
張貼留言