Skip to content
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

OBPIH-4002 Admins cannot delete documents #3393

Merged
merged 2 commits into from
Aug 9, 2022
Merged

OBPIH-4002 Admins cannot delete documents #3393

merged 2 commits into from
Aug 9, 2022

Conversation

kchelstowski
Copy link
Collaborator

Making admins be able to delete documents from PO

<g:link action="deleteDocument" id="${documentInstance.id}" params="['order.id':orderInstance?.id]" onclick="return confirm('${warehouse.message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');">
<img src="${createLinkTo(dir:'images/icons',file:'trash.png')}" alt="Delete" />
</g:link>
<g:isUserAdmin>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I mentioned in the previous PR, we should try not to use the static isUser* taglib any longer because these are configurable. The best approach would be to modify the LinkTagLib to handle this. Or always show the link and allow the auth mechanism to determine with the user has access.

@awalkowiak awalkowiak merged commit db6f16c into develop Aug 9, 2022
@awalkowiak awalkowiak deleted the OBPIH-4002 branch August 9, 2022 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants