AnsweredAssumed Answered

Edit Metadata Permissions

Question asked by dsr471 on Dec 9, 2014
Hi,

I've one requirement. i.e. we have customized the document preview page as per our requirement with our custom properties.
Now the requirement is if user is Admin and clicks the edit properties he should be able to change all properties. But if user is non-admin, he should only able to change some properties in Form.

In template-instance we added our Form(mycustom-type-edit) to formId tag,
<component>
         <region-id>edit-metadata</region-id>
         <url>/components/form</url>
         <properties>
            <itemKind>node</itemKind>
            <itemId>{nodeRef}</itemId>

            <formId>mycustom-type-edit</formId>

            <mode>edit</mode>
            <submitType>json</submitType>
            <showCaption>true</showCaption>
            <showCancelButton>true</showCancelButton>
         </properties>
      </component>



Is there any possible that we can give condition in template-instance like

<if admin>
<formId>myadmincustom-type-edit</formId>

<else>
<formId>mycustom-type-edit</formId>


or else how to achieve this task

Thanks,
DSR

Outcomes