mirror of https://github.com/ghostfolio/ghostfolio
Browse Source
* Add support to grant private access with permissions * Update changelog --------- Co-authored-by: Thomas Kaul <4159106+dtslvr@users.noreply.github.com>pull/2930/head
Francisco Silva
12 months ago
committed by
GitHub
21 changed files with 155 additions and 58 deletions
@ -1,5 +1,6 @@ |
|||
import { Access } from '@ghostfolio/common/interfaces'; |
|||
import { Access, User } from '@ghostfolio/common/interfaces'; |
|||
|
|||
export interface CreateOrUpdateAccessDialogParams { |
|||
access: Access; |
|||
user: User; |
|||
} |
|||
|
@ -1,6 +1,10 @@ |
|||
import { AccessType } from '@ghostfolio/common/types'; |
|||
import { AccessPermission } from '@prisma/client'; |
|||
|
|||
export interface Access { |
|||
alias?: string; |
|||
grantee?: string; |
|||
id: string; |
|||
type: 'PRIVATE' | 'PUBLIC' | 'RESTRICTED_VIEW'; |
|||
permissions: AccessPermission[]; |
|||
type: AccessType; |
|||
} |
|||
|
@ -0,0 +1 @@ |
|||
export type AccessType = 'PRIVATE' | 'PUBLIC'; |
Loading…
Reference in new issue