Hello Devexpress team,
i have to enable/disable Actions in dependance to an User. I have over 20 ViewControllers and each Controller have at least one Action. I would like to set Permissions for this and other default Actions from XAF. Currently i don't have a possibility to do it. I could imagine that other XAF user could need this feature too.
We have closed this ticket because another page addresses its subject:
Filtering - Make it possible to define and use custom functions in the criteria
Hi Uwe,
A similar suggestion is already registered in our Support Center - limit access to action by role. However, like your one, it doesn't provide enough details about the required functionality.
Also, this question has been discussed in issue Action based Permission. Please try the suggested solution. If it doesn't meet your requirements, please describe them in greater detail.
Thanks,
Michael.
Hello Michael,
the Action based Permission example is exactly what i need. You can see i make a suggestion and not a question. I would suggest that you implement the solution from Action based Permission as Standard in XAF. I have already read the issue "Action Based Permission" before i wrote this issue. I'am dissapointed that such an important feature is not implemented in XAF as Standard. Sure i could implement it on my own, but first i want to ask you whether you want to implement it or not. And i think i am not the only one who needs this kind of feature.
Required functionality:
- Create new Permission(ActionAccessPermission) this Permission has the same principle as ObjectAccessPermission, but instead of Objectchoice, the new action should have Actionchoice (All Actions in the current Project)
- So you can select Action and say what should happen to it "Visible, Invisible, Editable, NonEditable" for example.
- Perhaps also a Message for the reason why the user cant use the current action if he clicks on it. This message will be shown when the enduser clicks on the action.
Hi Uwe,
Thank you for the additional information. Our developers will consider this suggestion regarding future versions of our framework.
Thanks,
Michael.
Hi Uwe,
To start implementing this suggestion we need to clear up exactly which functionality you require. Could you please explain your requirements in greater detail? Particularly:
- 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?
- do you want to hide an action from a toolbar, or from a menu, or from everywhere?
- for a specific user or for all users?
- anything else?
Thanks,
Michael.
See Also:
Custom Action permission help