Skip to content

Update

agent_affiliation_update(context, data_dict)

Allow for logged-in users.

Source code in ckanext/attribution/logic/auth/update.py
12
13
14
15
16
17
@auth()
def agent_affiliation_update(context, data_dict):
    """
    Allow for logged-in users.
    """
    return auth_valid

agent_external_update(context, data_dict)

Allow for logged-in users.

Source code in ckanext/attribution/logic/auth/update.py
28
29
30
31
32
33
@auth()
def agent_external_update(context, data_dict):
    """
    Allow for logged-in users.
    """
    return auth_valid

agent_update(context, data_dict)

Only allow for sysadmins (who usually skip this method, except in tests).

Source code in ckanext/attribution/logic/auth/update.py
20
21
22
23
24
25
@auth()
def agent_update(context, data_dict):
    """
    Only allow for sysadmins (who usually skip this method, except in tests).
    """
    return {'success': is_sysadmin(context.get('user'))}

contribution_activity_update(context, data_dict)

Allow for logged-in users.

Source code in ckanext/attribution/logic/auth/update.py
36
37
38
39
40
41
@auth()
def contribution_activity_update(context, data_dict):
    """
    Allow for logged-in users.
    """
    return auth_valid