Replies: 4 comments 1 reply
-
HI @Gromofiz good point! But now as a result, you can not make use of the From the modelling perspective, it is totally fine if you grant also a user with MANAGER access a write access in the ACL, even if they don't need it. And then, the method call If you can't change your model, you can solve this problem in you backend method call if you test the users Role first: if (workflowSerivce.isUserInRole("org.imixs.ACCESSLEVEL.MANAGERACCESS")) {
// return all data
return workflowSerivce.getDocumentService().getDocumentsByType("workitem",....);
} else {
// return by explicit write access
return workflowSerivce.getWorkListByWriteAcces(....);
} But this is a very special use case in my eyes. Let me know if this solves your problem. |
Beta Was this translation helpful? Give feedback.
-
Hi Ralph First, you shouldn't answer emails at night time! ;-) Then .. I had a look at the code of getWorkListByWriteAcces and there is:
So I tryed to:
When "admin" calls getWorkListByWriteAcces the search term is: and even if a workitem in the db has: Using your example I ended up with
that seems to work. I have to better check it! |
Beta Was this translation helpful? Give feedback.
-
HI Enzo, you say it did not work for you - but you wrote
it should be the ACL writeaccess and not the readaccess You implementation of the
you lost the paging logic if you switch to the |
Beta Was this translation helpful? Give feedback.
-
I added a feature request: #826 |
Beta Was this translation helpful? Give feedback.
-
Hi Ralph
I've noted that the method
WorkflowService#getWorkListByWriteAcces
does not return any items when the principal has the MANAGER role only, and no writeaccess.
Looking at the "Access Level Matrix", here https://www.imixs.org/doc/engine/acl.html,
I was supposing that items should have been returned, ignoring ACL.
Do I miss something?
In another way the question is: how can I get the list of workitems a user can work on
considering both ACL (for example $writeaccess) and imixs' roles (AUTHOR, EDITOR AND MANAGER)?
Enzo
Beta Was this translation helpful? Give feedback.
All reactions