Fix inifinite redirection when trying to remove something without perms.
Merge pull request #1404 from loganalysis/rm-permission

Fix inifinite redirection when trying to remove something while logged in but without the right permissions.