def api_v1_show_resource_acl(id): """(API) Return a list of all tags, their associazted users, and whether they are allowed at this resource""" rid = safestr(id) # Note: Returns all so resource can know who tried to access it and failed, w/o further lookup output = accesslib.getAccessControlList(rid) return output, 200, {'Access-Control-Allow-Origin':'*','Content-Type': 'application/json', 'Content-Language': 'en'}
def api_v1_show_resource_fob(id,fob): """(API) Return a list of all tags, their associazted users, and whether they are allowed at this resource""" rid = safestr(id) # Note: Returns all so resource can know who tried to access it and failed, w/o further lookup output = accesslib.getAccessControlList(rid)