Ticket S91858
Visible to All Users
Duplicate

We have closed this ticket because another page addresses its subject:

ConditionalAppearance - Make it possible to manage Action availability against the currently logged user

limit access to action by role

created 17 years ago

A natural augmentation to permissions would be to add a new tab for actions and be able to assign execute rights to roles… Ahh … now that would ease a few tasks on my todo list! While i am at it: the permission UI is rather limited, if you could expand it a tad, allow sorting, more columns, perhaps grouping etc… just a thought, cheers, drew…

Answers

created 17 years ago

Hello Drew,
Please explain your requirements in greater detail:
- which actions do you need to disable?
- everywhere or for strict business classes?
- for ListViews or for DetailViews?
- for WindowsForms or for ASP.NET applications?
- hide an action from a toolbar, or from a menu, or everywhere?
- for one user or for all users?
- anything else?
Thanks,
Dan

    Comments (1)
    Andrey K (DevExpress Support) 5 years ago

      Hello,

      XAF v20.1 includes a preview of Action Permissions. This new XAF security layer allows developers to prohibit execution of both custom and XAF system Actions within WinForms and ASP.NET applications: Video Overview | Documentation.

      To enable this feature in versions earlier than v20.1.6, set the static SecurityStrategy.EnableSecurityForActions property to True. To add custom Actions or remove system Actions available in the Denied Actions tab, handle the NonSecureActionsInitializing event.

      Note that Action permissions will unconditionally hide Actions: we don't expect to interfere with Conditional AppearanceState MachineTargetObjectsCriteria, or any custom rules that are driven by criteria or object/UI changes within Controllers. If you require dynamic functionality for Actions, use these specific methods and built-in criteria functions such as IsCurrentUserInRole and CurrentUserId. If these solutions do not meet your business needs, please submit a separate ticket and elaborate on your scenario there.

      Thanks,
      Andrey

      Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

      Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.