MCPcopy Create free account
hub / github.com/CivilHub/CivilHub / check_access

Function check_access

projects/permissions.py:4–35  ·  view source on GitHub ↗

This function checkes whether the user is allowed to delete or modify the object passed in as an argument. Such an object must be a model instance of this application. i.e. project, group of tasks or a task. Returns True/False.

(obj, user)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

get_context_dataMethod · 0.85
dispatchMethod · 0.85
get_context_dataMethod · 0.85
get_context_dataMethod · 0.85
get_context_dataMethod · 0.85
dispatchMethod · 0.85
dispatchMethod · 0.85
get_context_dataMethod · 0.85
postMethod · 0.85
get_context_dataMethod · 0.85
dispatchMethod · 0.85
get_context_dataMethod · 0.85

Calls 1

is_moderatorFunction · 0.90

Tested by

no test coverage detected