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

EZP-30822: Fixed wrong usage of hasAccess in URLAliasService #2729

Merged
merged 1 commit into from Aug 9, 2019

Conversation

mikadamczyk
Copy link
Contributor

@mikadamczyk mikadamczyk commented Aug 8, 2019

Question Answer
JIRA issue EZP-30822
Bug/Improvement yes
New feature no
Target version 7.5
BC breaks no
Tests pass yes/no
Doc needed yes/no

Fix wrong usage of hasAccess() in repository in favor of canUser(). This is needed to solve an issue when there is a Role Assignment Limitation. In this case, they will return info to permission system they abstain from "voting" and return an array of Limitations.

TODO:

  • Implement feature / fix a bug.
  • Implement tests.
  • Fix new code according to Coding Standards ($ composer fix-cs).
  • Ask for Code Review.

@micszo micszo self-assigned this Aug 9, 2019
Copy link
Member

@micszo micszo left a comment

Choose a reason for hiding this comment

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

Adding and removing URL aliases works fine now for admin with section limitation.

@micszo micszo removed their assignment Aug 9, 2019
@lserwatka lserwatka merged commit 144757e into 7.5 Aug 9, 2019
@lserwatka lserwatka deleted the EZP-30822 branch August 9, 2019 10:31
@lserwatka
Copy link
Member

You can merge it up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
5 participants