mirror of
https://github.com/valitydev/redash.git
synced 2024-11-08 18:03:54 +00:00
6d2337b332
The issue is, if you try to revoke the permission of a user from an object, all the permissions on this object get removed. The fix is assigning filtered query object to it's own reference. According to SQLAlchemy documentation, `filter` method applies to the **copy** of the query object which means calling filter doesn't affect the object receiving filter call. For more information; http://docs.sqlalchemy.org/en/latest/orm/query.html#sqlalchemy.orm.query.Query.filter |
||
---|---|---|
.. | ||
handlers | ||
models | ||
query_runner | ||
tasks | ||
__init__.py | ||
factories.py | ||
test_authentication.py | ||
test_cli.py | ||
test_configuration.py | ||
test_handlers.py | ||
test_models.py | ||
test_permissions.py | ||
test_settings.py | ||
test_utils.py |