[#3519] refactoring code that checks if file/folder rename/move is allowed
[#3519] refactoring code that checks if file/folder rename/move is allowed

hydroshare/hydroshare,hydroshare/hydroshare,hydroshare/hydroshare,hydroshare/hydroshare,hydroshare/hydroshare