You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
yeicandoit
changed the title
view function may change
view function address may change
Jan 31, 2018
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?
The text was updated successfully, but these errors were encountered: