-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi-User Database Platforms: Disable functionality in PDFKeeper the user does not have access to perform. #55
Comments
PDFKeeper is retrying to upload the staged PDF and additional properties XML file with the same name. You will need to move the PDF and XML out of C:\Users\User_Name\AppData\Roaming\Robert F. Frasca\PDFKeeper\UploadStaging. |
@Sohail2949000 - By design, PDFKeeper will retry to upload on failure. This is a good thing when there is a database timeout or some other error. But in this case, there is no way for the PDF to upload since the user does not have permissions. I could parse the error but, this is not a reliable method since the language could be different in some environments and the message originates from the database. I think the best I can do here is check for PDFs in the UploadStaging folder after the upload cycle completes and display a message to the user with an option to open the UploadStaging folder. The user will then need to move the PDF and XML out of the folder. What do you think? |
@rffrasca Yes Sir the message option is good and also we can completely hide or disable the upload button based on login. If we we disable buttons like upload or other related to user who have write permissions I think it will be solved as user with read permission can not access the buttons |
@Sohail2949000 - I like your suggestion disabling controls in the user interface. I'm thinking that this can be enhanced further by querying and storing the user's permissions during login and using those values to disable menu and toolbar items for operations the user doesn't have access to perform. In addition, if the user doesn't have select access, the user should see an error message stating that they do not have read access to the database. Also, if the user doesn't have insert access, any PDF copied into the Upload folder will be moved to UploadRejected. |
@rffrasca yes this could enhance user experience a lot. If possible we can also add creating users form PDFkeeper instead going to database and create user there. so admin can create users directly form PDFKeeper and assign the permission |
@Sohail2949000 - This ask will require you to submit a feature request: |
@rffrasca okay sir I will create a feature request for this 🌟 |
… does not have access to perform will be disabled. #55 Signed-off-by: Robert F. Frasca <rffrasca@gmail.com>
I have connected a user with read-only permissions to PDFKeeper. When this user attempts to upload a document, an error message appears stating that the user "test" does not have write permissions. However, after dismissing the error message, it keeps reappearing every few seconds, disrupting the user's experience.
The text was updated successfully, but these errors were encountered: