We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8459911 commit d08a060Copy full SHA for d08a060
src/lib/utils/workbooks.ts
@@ -1,7 +1,8 @@
1
import { Roles } from '$lib/types/user';
2
-import { isAdmin } from '$lib/utils/authorship';
3
import { type WorkbookList } from '$lib/types/workbook';
4
+import { isAdmin } from '$lib/utils/authorship';
5
+
6
// 管理者 + ユーザ向けに公開されている場合
7
export function canViewWorkBook(role: Roles, isPublished: boolean) {
8
return isAdmin(role) || isPublished;
0 commit comments