Moved refine client build option to admin controller and added role
unauthorized error.