Trying to fix a bug with exception when user is not admin