diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-10-03 01:42:55 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-10-03 01:42:55 +0200 |
commit | 981071a64504a76a2becaa4150676142146f89b8 (patch) | |
tree | 2025ac67e3dac7c5d4155514c00547b7326742da /util/src/entities | |
parent | :art: restructure gateway (diff) | |
download | server-981071a64504a76a2becaa4150676142146f89b8.tar.xz |
:sparkles: User instance rights
Diffstat (limited to 'util/src/entities')
-rw-r--r-- | util/src/entities/User.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/util/src/entities/User.ts b/util/src/entities/User.ts index 68c147fb..aeb617eb 100644 --- a/util/src/entities/User.ts +++ b/util/src/entities/User.ts @@ -3,7 +3,6 @@ import { BaseClass } from "./BaseClass"; import { BitField } from "../util/BitField"; import { Relationship } from "./Relationship"; import { ConnectedAccount } from "./ConnectedAccount"; -import { HTTPError } from "lambert-server"; export enum PublicUserEnum { username, @@ -126,6 +125,9 @@ export class User extends BaseClass { @Column() public_flags: number; + @Column() + rights: string; // Rights + @JoinColumn({ name: "relationship_ids" }) @OneToMany(() => Relationship, (relationship: Relationship) => relationship.from, { cascade: true, |