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

check the existence of a path #113

Open
P-A-C opened this issue Dec 3, 2018 · 6 comments
Open

check the existence of a path #113

P-A-C opened this issue Dec 3, 2018 · 6 comments

Comments

@P-A-C
Copy link

P-A-C commented Dec 3, 2018

I would like to know, if I create a path on permissions and after I do a check on this path with a false child permissions that does not exist, will it return me an error or will it return to me the parent role (that I have)?
example:
"office / desk / computer" the computer does not exist.
If I check "office / desk / computer "will return true if I have 'office/desk' ?

@abiusx
Copy link
Contributor

abiusx commented Dec 3, 2018 via email

@P-A-C
Copy link
Author

P-A-C commented Dec 3, 2018

yes, but wouldn't it be interesting to have this kind of possibility?
If you check a path and the last argument of this path doesn't exist, but the parent permission does
that the exception is not thrown.
It may only interest me, but I would like to share with you.

@abiusx
Copy link
Contributor

abiusx commented Dec 3, 2018 via email

@P-A-C
Copy link
Author

P-A-C commented Dec 3, 2018

I totally agree.
I'll try to do that.

@abiusx
Copy link
Contributor

abiusx commented Dec 3, 2018 via email

@P-A-C
Copy link
Author

P-A-C commented Dec 3, 2018

Thank you

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

No branches or pull requests

2 participants