BUG: shouldn't overwrite $member if it is passed in as an object, also 'Administrators' is not the default 'code' for admin group. use the default code "ADMIN" to check if the $member is an admin.