diff --git a/src/lib/auth/auth.ts b/src/lib/auth/auth.ts index a09e2ab5..9d22878d 100644 --- a/src/lib/auth/auth.ts +++ b/src/lib/auth/auth.ts @@ -125,10 +125,6 @@ export class Auth { hasOrganizationAdminPermission = (orgNr: string) => this.hasOrganizationRole({ orgNr, role: 'admin' }); - isReadOnlyUser = (orgNr: string) => - this.hasOrganizationReadPermission(orgNr) && - !this.hasOrganizationWritePermission(orgNr); - hasSystemAdminPermission = () => this.hasResourceRole({ resource: 'system', diff --git a/src/pages/concept-registration-page/form-concept/index.tsx b/src/pages/concept-registration-page/form-concept/index.tsx index 21c1e4d0..caad8d76 100644 --- a/src/pages/concept-registration-page/form-concept/index.tsx +++ b/src/pages/concept-registration-page/form-concept/index.tsx @@ -16,7 +16,6 @@ import { Can } from '../../../casl/Can'; import { deepKeys } from '../../../lib/deep-keys'; import { getTranslateText } from '../../../lib/translateText'; import { localization } from '../../../lib/localization'; -import { authService } from '../../../services/auth-service'; import { useAppSelector, useAppDispatch } from '../../../app/redux/hooks'; import { setLanguage, toggleLanguage } from '../../../features/language'; @@ -154,7 +153,7 @@ export const FormConceptPure: FC = ({ }, [concept]); const publisherId = concept?.ansvarligVirksomhet?.id; - const isReadOnly = authService.isReadOnlyUser(publisherId); + const isReadOnly = false; const [expandAll, setExpandAll] = useState(false); const [isExpandAllDirty, setExpandAllDirty] = useState(false);