This content has been marked as final.
Show 3 replies
-
1. Re: Permission with Seam 2.1
shane.bryzak Sep 4, 2008 3:18 PM (in response to zergspirit)You can check permissions for the currently authenticated user using Identity.hasPermission(). If you want to check whether another user has permissions for an object, you need to iterate through the list returned by PermissionManager.listPermissions(Object) manually.
-
2. Re: Permission with Seam 2.1
zergspirit Sep 4, 2008 3:45 PM (in response to zergspirit)Yep, seems like a quite proper way to do it.
You didn't plan to make any method to do it? -
3. Re: Permission with Seam 2.1
zergspirit Sep 11, 2008 2:18 PM (in response to zergspirit)Would you have an idea about how to retrieve all the permission a principal has?
Doesn't seem like a right idea to do that manually, since it could be quite ugly, having to parse the actions and so on.