Merge alpha 0.0.5 to master #54

Merged
niggl merged 292 commits from dev into main 2020-12-23 17:05:35 +00:00
Showing only changes of commit eb9473e230 - Show all commits

View File

@ -22,24 +22,18 @@ export abstract class Permission {
* The permissions principal
*/
@ManyToOne(() => Principal, principal => principal.permissions)
principal: Principal[]
principal: Principal;
/**
* The target
*/
@Column({
type: 'simple-enum',
enum: PermissionTarget
})
@Column({ type: 'varchar' })
@IsNotEmpty()
target: PermissionTarget;
/**
* The action type
*/
@Column({
type: 'simple-enum',
enum: PermissionAction
})
@Column({ type: 'varchar' })
action: PermissionAction;
}