Skip to content
Snippets Groups Projects
Commit 3c5edcbe authored by John Chilton's avatar John Chilton
Browse files

Remove unneeded check.

parent e17c53c1
No related branches found
No related tags found
No related merge requests found
......@@ -37,8 +37,6 @@ class ToolBasedAuthorization(AllowAnyAuthorization):
self.__unauthorized("Attempt to setup a tool with id not registered with LWR toolbox.")
def authorize_tool_file(self, name, contents):
if name != basename(name): # May be verified elsewhere, but this is important.
self.__unauthorized("Attempt to write tool file outside of valid directory.")
tool = self.tool
tool_dir = tool.get_tool_dir()
tool_dir_file = join(tool_dir, name)
......@@ -47,7 +45,8 @@ class ToolBasedAuthorization(AllowAnyAuthorization):
self.__unauthorized("Attempt to write tool file with contents differing from LWR copy of tool file.")
def authorize_execution(self, command_line):
# TODO: Implement
# TODO: Implement.
pass
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment