Support roles with rights and add moderator role
authorChocobozzz <florian.bigard@gmail.com>
Fri, 27 Oct 2017 14:55:03 +0000 (16:55 +0200)
committerChocobozzz <florian.bigard@gmail.com>
Fri, 27 Oct 2017 14:55:03 +0000 (16:55 +0200)
commit954605a804da399317ca62afa2fb9244afa11ebf
treede6ee69280bfb928bc01c29430e13d5b820e921a
parente02573ad67626210ed279bad321ee139094921a1
Support roles with rights and add moderator role
53 files changed:
client/src/app/+admin/admin-guard.service.ts [deleted file]
client/src/app/+admin/admin-routing.module.ts
client/src/app/+admin/admin.module.ts
client/src/app/+admin/friends/friends.routes.ts
client/src/app/+admin/request-schedulers/request-schedulers.routes.ts
client/src/app/+admin/users/user-edit/user-add.component.ts
client/src/app/+admin/users/user-edit/user-edit.component.html
client/src/app/+admin/users/user-edit/user-edit.ts
client/src/app/+admin/users/user-edit/user-update.component.ts
client/src/app/+admin/users/user-list/user-list.component.html
client/src/app/+admin/users/users.routes.ts
client/src/app/+admin/video-abuses/video-abuses.routes.ts
client/src/app/+admin/video-blacklist/video-blacklist.routes.ts
client/src/app/core/auth/auth-user.model.ts
client/src/app/core/auth/auth.service.ts
client/src/app/core/auth/index.ts
client/src/app/core/auth/login-guard.service.ts [deleted file]
client/src/app/core/core.module.ts
client/src/app/core/menu/menu-admin.component.html
client/src/app/core/menu/menu-admin.component.ts
client/src/app/core/menu/menu.component.html
client/src/app/core/menu/menu.component.ts
client/src/app/core/routing/index.ts
client/src/app/core/routing/login-guard.service.ts [new file with mode: 0644]
client/src/app/core/routing/user-right-guard.service.ts [new file with mode: 0644]
client/src/app/shared/forms/form-validators/user.ts
client/src/app/shared/users/user.model.ts
client/src/app/videos/shared/video-details.model.ts
client/src/app/videos/video-list/video-list.component.ts
server/controllers/api/pods.ts
server/controllers/api/request-schedulers.ts
server/controllers/api/users.ts
server/controllers/api/videos/abuse.ts
server/controllers/api/videos/blacklist.ts
server/helpers/custom-validators/users.ts
server/initializers/constants.ts
server/initializers/installer.ts
server/initializers/migrations/0085-user-role.ts [new file with mode: 0644]
server/middlewares/admin.ts [deleted file]
server/middlewares/index.ts
server/middlewares/user-right.ts [new file with mode: 0644]
server/middlewares/validators/users.ts
server/middlewares/validators/video-channels.ts
server/middlewares/validators/videos.ts
server/models/user/user-interface.ts
server/models/user/user.ts
shared/models/users/index.ts
shared/models/users/user-create.model.ts
shared/models/users/user-right.enum.ts [new file with mode: 0644]
shared/models/users/user-role.ts [new file with mode: 0644]
shared/models/users/user-role.type.ts [deleted file]
shared/models/users/user-update.model.ts
shared/models/users/user.model.ts