mirror of
https://github.com/docmost/docmost.git
synced 2026-05-07 14:43:06 +08:00
ca9558b246
* feat: resolve comment (EE) * Add resolve to comment mark in editor (EE) * comment ui permissions * sticky comment state tabs (EE) * cleanup * feat: add space_id to comments and allow space admins to delete any comment - Add space_id column to comments table with data migration from pages - Add last_edited_by_id, resolved_by_id, and updated_at columns to comments - Update comment deletion permissions to allow space admins to delete any comment - Backfill space_id on old comments * fix foreign keys
7 lines
214 B
TypeScript
7 lines
214 B
TypeScript
import { isCloud } from "@/lib/config";
|
|
import { useLicense } from "@/ee/hooks/use-license";
|
|
|
|
export const useIsCloudEE = () => {
|
|
const { hasLicenseKey } = useLicense();
|
|
return isCloud() || !!hasLicenseKey;
|
|
};
|