Skip to content

Modify AND and OR permission operands to have the ability to use custom messages #6499

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

Closed
wants to merge 2 commits into from

Conversation

samitnuk
Copy link

@samitnuk samitnuk commented Mar 8, 2019

refs #6427

  • AND - If failed permission has a message, it will be returned.
  • OR - If both permissions will be failed:
    a) if both permissions have messages - will be returned one message combined from two messages;
    b) if only one permission (from both failed) has a message - this message will be returned (I suppose this is better then return the default one).
  • NOT - untouched here since in any case, we cannot use the message from "inverted" permission.

@carltongibson please comment. Thanks.

@samitnuk samitnuk changed the title Modify AND operand to have the ability to use custom messages Modify permission operands to have the ability to use custom messages Mar 8, 2019
@samitnuk samitnuk changed the title Modify permission operands to have the ability to use custom messages Modify AND and OR permission operands to have the ability to use custom messages Mar 9, 2019
@samitnuk samitnuk closed this Mar 9, 2019
@samitnuk
Copy link
Author

samitnuk commented Mar 9, 2019

Closed because of missed Ready for review button.

img 2019-03-09 в 20 25 22

Expected https://help.github.com/en/articles/changing-the-stage-of-a-pull-request

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.

1 participant