MCPcopy Index your code
hub / github.com/pyload/pyload / get_permission

Function get_permission

module/web/utils.py:55–62  ·  view source on GitHub ↗

Returns a dict with permission key :param perms: dictionary :param p: bits

(perms, p)

Source from the content-addressed store, hash-verified

53
54
55def get_permission(perms, p):
56 """Returns a dict with permission key
57
58 :param perms: dictionary
59 :param p: bits
60 """
61 for name in permlist():
62 perms[name] = has_permission(p, getattr(PERMS, name))
63
64
65def set_permission(perms):

Callers 2

adminFunction · 0.90
parse_permissionsFunction · 0.85

Calls 2

has_permissionFunction · 0.90
permlistFunction · 0.85

Tested by

no test coverage detected