##// END OF EJS Templates
user-group-admin: use a proper auth filter....
user-group-admin: use a proper auth filter. - we now use an full sql based perm check based on an earlier fetch of allowed IDS - fixes problem with sql limit/filter and later filterint that by auth. - can be optimized later

File last commit:

r1:854a839a default
r1986:64b52a82 default
Show More
util.py
10 lines | 211 B | text/x-python | PythonLexer
"""
Safe quoting method
"""
def safe_quote(obj):
# this is the SQLA 0.9 approach
if hasattr(obj, 'name') and hasattr(obj.name, 'quote'):
return obj.name.quote
else:
return obj.quote