entferne ADMIN_HELIPORT und ADMIN_EVENT berechtigung für CGs

This commit is contained in:
PxlLoewe
2025-07-26 11:24:45 -07:00
parent 5b57b31706
commit a09671036d

View File

@@ -189,20 +189,9 @@ export const ProfileForm: React.FC<ProfileFormProps> = ({ user }: ProfileFormPro
type="button"
className="btn btn-sm btn-outline"
onClick={() =>
form.setValue(
"permissions",
[
"LOGIN_NEXTCLOUD",
"PILOT",
"DISPO",
"AUDIO",
"ADMIN_EVENT",
"ADMIN_HELIPORT",
],
{
shouldDirty: true,
},
)
form.setValue("permissions", ["LOGIN_NEXTCLOUD", "PILOT", "DISPO", "AUDIO"], {
shouldDirty: true,
})
}
onSubmit={() => false}
>