Added protection for users without perms