2 Replies Latest reply: Nov 21, 2012 8:56 AM by 975122 RSS

    How can I show or hide a value in a list according to a role ?

    975122
      Hi, i just want to hide or show a value in a list according to a role

      I have try this but it doesn't works



      <list>
      <st> lastname </st>
      <st>UI_ATTR_LASTNAME</st>
      <st>firstname</st>
      <st>UI_ATTR_FIRSTNAME</st>
      <Field name='UI_ATTR_ROLES'>
      <Display class='Label'>
      <Property name='title' value='role'/>
      </Display>
      <Disable>
      <neq>
      <rule name='RuleLibrary:isAdminRoleGranted'>
      <argument name='adminRoleName' value='Admin_Role_View'/>
      </rule>
      <i>1</i>
      </neq>
      </Disable>
      </Field>
      </list>

      Does anybody know how to do that?


      Thanks

      PS: I replace s by st for display in the forum