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

view function address may change #22

Open
yeicandoit opened this issue Jan 31, 2018 · 1 comment
Open

view function address may change #22

yeicandoit opened this issue Jan 31, 2018 · 1 comment

Comments

@yeicandoit
Copy link

I added deny rules for test function:
@rbac.deny(['admin'], methods=['POST', 'GET'])
def verify_test():
...
checked self._denied in init.py:
[(u'admin', 'POST', <function verify_test at 0x7f7b203282a8>), (u'admin', 'GET', <function verify_test at 0x7f7b203282a8>)]

Then I send request to verify_test, check verify_test fucntion address, found it has been changed, so this deny rules could not work!
<function verify_test at 0x7f7b20328050>

Have you met this issue?

@yeicandoit yeicandoit changed the title view function may change view function address may change Jan 31, 2018
@pixuan
Copy link

pixuan commented May 28, 2018

@yeicandoit I've met with same problem, how did you solve it?

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