Merge "Updated tenant_id to project_id in policy.py"
This commit is contained in:
commit
56eca7ef0e
|
@ -90,7 +90,7 @@ def check(actions, request, target={}):
|
||||||
:param target: dictionary representing the object of the action
|
:param target: dictionary representing the object of the action
|
||||||
for object creation this should be a dictionary
|
for object creation this should be a dictionary
|
||||||
representing the location of the object e.g.
|
representing the location of the object e.g.
|
||||||
{'tenant_id': object.tenant_id}
|
{'project_id': object.project_id}
|
||||||
:returns: boolean if the user has permission or not for the actions.
|
:returns: boolean if the user has permission or not for the actions.
|
||||||
"""
|
"""
|
||||||
user = auth_utils.get_user(request)
|
user = auth_utils.get_user(request)
|
||||||
|
|
Loading…
Reference in New Issue