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

API should not support adding child categories with different permission than parent #2481

Merged
merged 9 commits into from
Feb 20, 2018

Conversation

rowasc
Copy link
Contributor

@rowasc rowasc commented Feb 16, 2018

This pull request makes the following changes:

Test checklist:

  • [ ]

  • I certify that I ran my checklist

Fixes ushahidi/platform# .

Ping @ushahidi/platform

@rowasc rowasc changed the title Wip perms categories API should not support adding child categories with different permission than parent Feb 16, 2018
@@ -162,8 +160,30 @@ public function delete(Entity $entity)
public function deleteTag($id)
{
// Remove tag from attribute options
$this->removeTagFromAttributeOptions($entity->id);

$this->removeTagFromAttributeOptions($id);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm really not sure why this was using $entity->id since there was not entity to use. I could revert it .. it's probably not being used . :/

Copy link
Contributor

Choose a reason for hiding this comment

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

Hmmm yeah this must not have been used anymore

@rowasc rowasc requested a review from willdoran February 19, 2018 13:59
@rowasc
Copy link
Contributor Author

rowasc commented Feb 19, 2018

@willdoran can you take a look at this PR? I'm not sure TBH, I think isRoleValid could move to a trait and have a better name, (besides the implementation itself) ??

Copy link
Contributor

@willdoran willdoran left a comment

Choose a reason for hiding this comment

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

Looks good

@@ -162,8 +160,30 @@ public function delete(Entity $entity)
public function deleteTag($id)
{
// Remove tag from attribute options
$this->removeTagFromAttributeOptions($entity->id);

$this->removeTagFromAttributeOptions($id);
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmmm yeah this must not have been used anymore

@rowasc rowasc merged commit 70e91c9 into develop Feb 20, 2018
@rowasc rowasc deleted the wip-perms-categories branch September 28, 2019 18:43
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.

2 participants