aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/users
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-09-05 21:29:39 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-09-05 21:29:39 +0200
commit8094a8980265a0a28e508dbd7cf7c7029e6d98b6 (patch)
tree26be2b9b43dfe485ea14eb53d3a1adb6247c35f8 /shared/models/users
parent980246ea8f1c51a137eaf0c441ef7e3b6fb88810 (diff)
downloadPeerTube-8094a8980265a0a28e508dbd7cf7c7029e6d98b6.tar.gz
PeerTube-8094a8980265a0a28e508dbd7cf7c7029e6d98b6.tar.zst
PeerTube-8094a8980265a0a28e508dbd7cf7c7029e6d98b6.zip
Add user update for admins
Diffstat (limited to 'shared/models/users')
-rw-r--r--shared/models/users/index.ts1
-rw-r--r--shared/models/users/user-update-me.model.ts5
-rw-r--r--shared/models/users/user-update.model.ts3
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 @@
1export * from './user.model' 1export * from './user.model'
2export * from './user-create.model' 2export * from './user-create.model'
3export * from './user-update.model' 3export * from './user-update.model'
4export * from './user-update-me.model'
4export * from './user-role.type' 5export * 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 @@
1export 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 @@
1export interface UserUpdate { 1export interface UserUpdate {
2 displayNSFW?: boolean 2 email?: string
3 password?: string
4 videoQuota?: number 3 videoQuota?: number
5} 4}