using function over constant to check for admin