Updated required role for user report page GET API (#27529)
* Updated required role for user report page GET API * Updated permission in error message --------- Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
22604d4592
Коммит
40abf8ef66
@@ -76,7 +76,7 @@ func getUserCountForReporting(c *Context, w http.ResponseWriter, r *http.Request
|
|||||||
|
|
||||||
func startUsersBatchExport(c *Context, w http.ResponseWriter, r *http.Request) {
|
func startUsersBatchExport(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||||
if !(c.IsSystemAdmin()) {
|
if !(c.IsSystemAdmin()) {
|
||||||
c.SetPermissionError(model.PermissionSysconsoleReadUserManagementUsers)
|
c.SetPermissionError(model.PermissionManageSystem)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user