Admin override for read-only form fields in share

cancel
Showing results for 
Search instead for 
Did you mean: 
marcollirite
Active Member II

Admin override for read-only form fields in share

Hi all

I am looking for a way to set custom forms in Share to be read-only for general users, but to allow them to be edited by administrator level users. At the moment I am using the "read-only" = true argument in my form field in the share-config-custom.xml, which achieves the first part of my goal. However, I'm still looking for a way which the admin could override this and make changes to those form fields, if necessary.

Any tips would be greatly appreciated!

Marcus

2 Replies
afaust
Master

Re: Admin override for read-only form fields in share

The only way I can think of at the moment would be based on Surf Extension modules. Such an extension can be bound to specific conditions via an evaluator (in this case checking group membership / role against being admin) and provide overrides to configuration sections. In such a module you could provide a reduced set of form cofiguration directives that changes the read-only attribute.

marcollirite
Active Member II

Re: Admin override for read-only form fields in share

Thanks for the reply. I will look into that.