parent
476afc6a99
commit
eb9473e230
@ -22,24 +22,18 @@ export abstract class Permission {
|
|||||||
* The permissions principal
|
* The permissions principal
|
||||||
*/
|
*/
|
||||||
@ManyToOne(() => Principal, principal => principal.permissions)
|
@ManyToOne(() => Principal, principal => principal.permissions)
|
||||||
principal: Principal[]
|
principal: Principal;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The target
|
* The target
|
||||||
*/
|
*/
|
||||||
@Column({
|
@Column({ type: 'varchar' })
|
||||||
type: 'simple-enum',
|
|
||||||
enum: PermissionTarget
|
|
||||||
})
|
|
||||||
@IsNotEmpty()
|
@IsNotEmpty()
|
||||||
target: PermissionTarget;
|
target: PermissionTarget;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The action type
|
* The action type
|
||||||
*/
|
*/
|
||||||
@Column({
|
@Column({ type: 'varchar' })
|
||||||
type: 'simple-enum',
|
|
||||||
enum: PermissionAction
|
|
||||||
})
|
|
||||||
action: PermissionAction;
|
action: PermissionAction;
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user