mirror of
https://github.com/outline/outline.git
synced 2026-12-06 11:12:32 +03:00
8 lines
285 B
TypeScript
8 lines
285 B
TypeScript
import { Notification, User } from "@server/models";
|
|
import { allow } from "./cancan";
|
|
import { and, isOwner, isTeamModel } from "./utils";
|
|
|
|
allow(User, ["read", "update"], Notification, (actor, notification) =>
|
|
and(isTeamModel(actor, notification), isOwner(actor, notification))
|
|
);
|