Fixed small bug when user is not staff in sandbox.