unneeded function in ensureAdmin