MCPcopy
hub / github.com/WebODM/WebODM / check_project_perms

Function check_project_perms

app/api/common.py:39–41  ·  view source on GitHub ↗
(request, project, perms=('view_project',))

Source from the content-addressed store, hash-verified

37 return project
38
39def check_project_perms(request, project, perms=('view_project',)):
40 for perm in perms:
41 if not request.user.has_perm(perm, project): raise exceptions.NotFound()
42
43def hex2rgb(hex_color, with_alpha=False):
44 """

Callers 14

postMethod · 0.85
patchMethod · 0.85
deleteMethod · 0.85
set_pending_actionMethod · 0.85
outputMethod · 0.85
retrieveMethod · 0.85
commitMethod · 0.85
uploadMethod · 0.85
duplicateMethod · 0.85
createMethod · 0.85
updateMethod · 0.85
get_and_check_taskMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected