X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FDeleteIlink.py;h=0d07dfe3153d1c966f1f622498e45626fc691132;hb=b0164a712bd25c86814051931760707b2a619ad6;hp=6452b0deb486e0662d3867c93be8e363a785e978;hpb=0c28b6c095054293cc35c75a7a601486a4c249ff;p=plcapi.git diff --git a/PLC/Methods/DeleteIlink.py b/PLC/Methods/DeleteIlink.py index 6452b0d..0d07dfe 100644 --- a/PLC/Methods/DeleteIlink.py +++ b/PLC/Methods/DeleteIlink.py @@ -53,8 +53,8 @@ class DeleteIlink(Method): # check authorizations if 'admin' in self.caller['roles']: pass - elif not AuthorizeHelpers.person_access_tag_type (self.api, self.caller, tag_type): - raise PLCPermissionDenied, "%s, no permission to use this tag type"%self.name + elif not AuthorizeHelpers.caller_may_access_tag_type (self.api, self.caller, tag_type): + raise PLCPermissionDenied, "%s, forbidden tag %s"%(self.name,tag_type['tagname']) elif AuthorizeHelpers.interface_belongs_to_person (self.api, src_if, self.caller): pass elif src_if_id != dst_if_id and AuthorizeHelpers.interface_belongs_to_person (self.api, dst_if, self.caller):