diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-09-05 21:29:39 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-09-05 21:29:39 +0200 |
commit | 8094a8980265a0a28e508dbd7cf7c7029e6d98b6 (patch) | |
tree | 26be2b9b43dfe485ea14eb53d3a1adb6247c35f8 /shared | |
parent | 980246ea8f1c51a137eaf0c441ef7e3b6fb88810 (diff) | |
download | PeerTube-8094a8980265a0a28e508dbd7cf7c7029e6d98b6.tar.gz PeerTube-8094a8980265a0a28e508dbd7cf7c7029e6d98b6.tar.zst PeerTube-8094a8980265a0a28e508dbd7cf7c7029e6d98b6.zip |
Add user update for admins
Diffstat (limited to 'shared')
-rw-r--r-- | shared/models/users/index.ts | 1 | ||||
-rw-r--r-- | shared/models/users/user-update-me.model.ts | 5 | ||||
-rw-r--r-- | shared/models/users/user-update.model.ts | 3 |
3 files changed, 7 insertions, 2 deletions
diff --git a/shared/models/users/index.ts b/shared/models/users/index.ts index 414aaab08..45dbc7b8f 100644 --- a/shared/models/users/index.ts +++ b/shared/models/users/index.ts | |||
@@ -1,4 +1,5 @@ | |||
1 | export * from './user.model' | 1 | export * from './user.model' |
2 | export * from './user-create.model' | 2 | export * from './user-create.model' |
3 | export * from './user-update.model' | 3 | export * from './user-update.model' |
4 | export * from './user-update-me.model' | ||
4 | export * from './user-role.type' | 5 | export * from './user-role.type' |
diff --git a/shared/models/users/user-update-me.model.ts b/shared/models/users/user-update-me.model.ts new file mode 100644 index 000000000..0ee41a79b --- /dev/null +++ b/shared/models/users/user-update-me.model.ts | |||
@@ -0,0 +1,5 @@ | |||
1 | export interface UserUpdateMe { | ||
2 | displayNSFW?: boolean | ||
3 | email?: string | ||
4 | password?: string | ||
5 | } | ||
diff --git a/shared/models/users/user-update.model.ts b/shared/models/users/user-update.model.ts index 895ec0681..e22166fdc 100644 --- a/shared/models/users/user-update.model.ts +++ b/shared/models/users/user-update.model.ts | |||
@@ -1,5 +1,4 @@ | |||
1 | export interface UserUpdate { | 1 | export interface UserUpdate { |
2 | displayNSFW?: boolean | 2 | email?: string |
3 | password?: string | ||
4 | videoQuota?: number | 3 | videoQuota?: number |
5 | } | 4 | } |