mirror of
https://github.com/outline/outline.git
synced 2026-11-25 15:15:15 +03:00
Adds group sync from external authentication providers, allowing team group memberships to be automatically managed based on provider data on sign-in in the future.
7 lines
211 B
TypeScript
7 lines
211 B
TypeScript
import { ExternalGroup } from "@server/models";
|
|
import User from "@server/models/User";
|
|
import { allow } from "./cancan";
|
|
import { isTeamAdmin } from "./utils";
|
|
|
|
allow(User, "read", ExternalGroup, isTeamAdmin);
|