We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Implementing form field permissions

Thread ID:

Created:

Updated:

Platform:

Replies:

124116 May 18,2016 08:06 AM UTC May 19,2016 02:43 PM UTC ASP.NET MVC 1
loading
Tags: Textbox
Tom Frajer
Asked On May 18, 2016 08:06 AM UTC

I want to show/hide/enable/disable fields on my forms based on current user role. I will implement standard RBAC patter for managing permissions and I will have list of all my form fields in database table + information who (role) can view/edit that field.
My question is, what is best way to implement solid mechanism on frontend to achieve this without adding any logic or conditions to my views. Im thinking of some way to encapsulate each UI component (textbox, datepicker, dropdown, etc.) to add permission processing in way that it will automatically pull user role from session and then set properties for that UI component.

Any ideas how to do this? Links to useful articles about how to do this correctly are welcome.

Thank you.

Francis Paul Antony Raj [Syncfusion]
Replied On May 19, 2016 02:43 PM UTC

Hi Tom, 
 
Thanks for contacting Syncfusion support. 
 
We have analyzed your query. You can achieve your requirement “Adding permission related property to UI components based on User Role in the form elements” in application level only by ensuring with current user role maintained in the session. So please apply the changes in sample level to hide/disable the fields in the form, based on the user role.  
We are trying to find other alternative solutions/other feasibilities as what you expected to achieve your requirement. We will update you once we get a solution.  
 
Regards, 
Francis Paul A 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;