Role
Role
A Role represents a collection of permissions which determine the authorization level of a User on a given set of Channels.
Signature
class Role extends VendureEntity implements ChannelAware {
constructor(input?: DeepPartial<Role>)
@Column() @Column() code: string;
@Column() @Column() description: string;
@Column('simple-array') @Column('simple-array') permissions: Permission[];
@ManyToMany(type => Channel) @JoinTable() @ManyToMany(type => Channel)
@JoinTable()
channels: Channel[];
}
Extends
Implements
Members
constructor
method
type:
(input?: DeepPartial<Role>) => Role
code
property
type:
string
description
property
type:
string
permissions
property
type:
Permission[]
channels
property
type:
Channel[]