X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FAuthorizeHelpers.py;h=ec8daafa677acdc2244be973835e9925cc281928;hb=b307078ab6dec6348c05d233eec7036df046bde9;hp=04fb35d0a550c7d0a7bc65e030f859d356a1d0cf;hpb=366a9cc3c0def815f9d95226c9c6790371ae84d0;p=plcapi.git diff --git a/PLC/AuthorizeHelpers.py b/PLC/AuthorizeHelpers.py index 04fb35d..ec8daaf 100644 --- a/PLC/AuthorizeHelpers.py +++ b/PLC/AuthorizeHelpers.py @@ -200,8 +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 +# 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)