X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FAuthorizeHelpers.py;h=ec8daafa677acdc2244be973835e9925cc281928;hb=19d4a01ccf66af9e00914351b3eacd5fc880f988;hp=b68ac8c74df5ac9ba0850174b4311a3cadb36d49;hpb=924e7326a457e2c599c29e205f226e59cc777250;p=plcapi.git diff --git a/PLC/AuthorizeHelpers.py b/PLC/AuthorizeHelpers.py index b68ac8c..ec8daaf 100644 --- a/PLC/AuthorizeHelpers.py +++ b/PLC/AuthorizeHelpers.py @@ -200,6 +200,8 @@ def caller_may_write_slice_tag (slice, api, caller, tag_type, node_id_or_hostnam if AuthorizeHelpers.slice_belongs_to_pi (api, slice, caller): granted=True ; break if not granted: +# try: print "DEBUG: caller=%s"%caller +# except: pass raise PLCPermissionDenied, "Cannot write slice tag %s - %s"%(tag_type['tagname'],reason) setattr(Slice,'caller_may_write_tag',caller_may_write_slice_tag)