StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
Role Based Security
»
Permission to change field value
Permission to change field value
Post Reply
Like
0
Permission to change field value
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Trent Taylor
Trent Taylor
posted 17 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 6.9K
This would just require that you call the GetPermission method within your application before allowing someone to apply a 100% discount. For example, if you have a button that allows this to happen, you could hide or disable the button or link when the form is being initialized (Load or Constructor). You could also place this logic when the button or link is clicked and show a message if they do not have permission.
If Not SecurityBasics.CurrentUser.GetPermission("100% Discount").Action = PermissionAction.Grant Then
MyDiscountButton.Enabled = False
End If
Reply
Like
0
Chan
Chan
posted 17 Years Ago
ANSWER
Topic Details
Share Topic
Group: Forum Members
Posts: 533,
Visits: 2K
Hi,
I need to allow user to specify which user has permission to offer 100% discount to customer. Where could I call GetPermission() to prevent unauthorized user to specify "invalid" value?
Thank you
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Like
0
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search