MM-24865: local mode for some user handlers (#14511)
Summary - Local mode handler for createUser - Local mode handler for updateUser - Local mode support for updateUserRoles - Local mode support for sendPasswordReset - Local mode support for updateUserMfa - Local mode support for updateUserActive Ticket Link - https://mattermost.atlassian.net/browse/MM-24865 - https://mattermost.atlassian.net/browse/MM-24869 - https://mattermost.atlassian.net/browse/MM-24866 - https://mattermost.atlassian.net/browse/MM-24868 - https://mattermost.atlassian.net/browse/MM-24870 - https://mattermost.atlassian.net/browse/MM-25041
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
f30a62e303
Коммит
d5e9fde8d7
@@ -92,6 +92,9 @@ func (a *App) SessionHasPermissionToUser(session model.Session, userId string) b
|
||||
if userId == "" {
|
||||
return false
|
||||
}
|
||||
if session.IsUnrestricted() {
|
||||
return true
|
||||
}
|
||||
|
||||
if session.UserId == userId {
|
||||
return true
|
||||
|
||||
Ссылка в новой задаче
Block a user