mirror of
https://github.com/mistergibson/gxg-server.git
synced 2026-08-15 10:24:29 -07:00
fixed destroy method on URA
This commit is contained in:
parent
602452131c
commit
f2a32aa76a
1 changed files with 8 additions and 2 deletions
|
|
@ -928,8 +928,14 @@ module GxG
|
||||||
result = {:result => false, :error => "Permission Error", :error_code => :permission}
|
result = {:result => false, :error => "Permission Error", :error_code => :permission}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
unless result
|
unless result
|
||||||
result = {:result => ::GxG::VFS.destroy(the_path, credential)}
|
the_profile = self.profile(the_path, credential)
|
||||||
|
if [:virtual_directory, :directory, :persisted_array].include?(the_profile[:type])
|
||||||
|
result = {:result => ::GxG::VFS.rmdir(the_path)}
|
||||||
|
else
|
||||||
|
result = {:result => ::GxG::VFS.rmfile(the_path)}
|
||||||
|
end
|
||||||
|
# xxx
|
||||||
end
|
end
|
||||||
result
|
result
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue