X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FAdmIsPersonInRole.py;h=b031b64a1a8086f6f164e8f699a99f5fdcf9ddcd;hb=238d5594712b9d918636501e754a8f5816313e25;hp=b32ab03528624d2f9657346326a1748d7a4b1fbd;hpb=b0d2dea38d0136e256330b561ec1c6efd652f4dc;p=plcapi.git diff --git a/PLC/Methods/AdmIsPersonInRole.py b/PLC/Methods/AdmIsPersonInRole.py index b32ab03..b031b64 100644 --- a/PLC/Methods/AdmIsPersonInRole.py +++ b/PLC/Methods/AdmIsPersonInRole.py @@ -29,6 +29,8 @@ class AdmIsPersonInRole(Method): returns = Parameter(int, "1 if account has role, 0 otherwise") + object_type = 'Person' + def call(self, auth, person_id_or_email, role_id_or_name): # This is a totally fucked up function. I have no idea why it # exists or who calls it, but here is how it is supposed to