Hi, I have one more question. After scanning or uploading in the certain folder document gets the same permissions that folder has. I am using workflow which automatically starts after upload or scan . In that workflow I am revoking permissions to every user except the user who did that upload. This might be a problem if user refreshes page after upload (when run_config starts), because workflow will not be executed and document will remain visible for other users. Is there a way to change this, so document can be seen only by the user who did the upload without running the workflow?
Code: Select all
Authentication auth = PrincipalUtils.getAuthentication();
auth.getName()