restricting access to certain fields on a form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2015 11:30 AM
Hello,
I have a requirement that the status field on the cmdb_ci form should only be editable by an admin. We have a role that allows general editing on this form with an ACL so I tried to create a UI policy to make the required field read only, but I guess the ACL trumps the UI policy because I didn't get my intended effect.
Is there a script that I can add to the ACL to make this field read-only? I am not familiar with scripting at all, but I am not seeing an alternative.
Thanks in advance,
Albert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2015 01:47 PM
Albert,
Have a Write ACL on Status field and in the Roles tab add 'admin'. This should serve your purpose.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2015 03:37 PM
Thanks for the reply Mani. I'm not sure if your solution would work. In my original post, I don't know if I mentioned this, but I want the people with that role to still write to the whole form except for that specific field. So there's already an ACL for people with that role to write to the form.
Maybe I'm just misunderstanding what you're saying. Could you clarify what you meant?
Thanks.
Albert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2015 03:50 PM
Albert,
Though you have write access to the entire form. You can have Write ACL on single field also to restrict or give access.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2015 04:17 PM
I guess I'm not seeing or don't know where I can call out a specific field to be restricted. Or maybe I'm not understanding what you're trying to tell me. I may just have to refresh myself on the wiki.