var r=function(r,n){return Array.isArray(n)&&n.length?n:Array.isArray(r)&&r.length?r:[]},n=function(n){var e,o,u;return!!n&&(!(null===(e=n.role)||void 0===e||!e.toLowerCase().includes("admin"))||r(null!==(o=n.group)&&void 0!==o?o:[],null!==(u=n.groups)&&void 0!==u?u:[]).some((function(r){return r.name.toLowerCase().includes("admin")})))};export{n as checkIsUserAdmin,r as getUserGroups};
//# sourceMappingURL=checkIsUserAdmin.js.map
