XYZ-51: Unit tests for and changes to SetRolePermissionsFromConfig. (#8160)
* XYZ-10: Role store. * XYZ-37: Update unit tests to work with database roles. * XYZ-51: Tests 'SetRolePermissionsFromConfig' against JSON from policy page. * XYZ-51: Adds permissions in non-licensed cases also. * XYZ-51: Removes some permissions from team_user role. * XYZ-51: Merge fix for change to default permissions from PR 8208. * XYZ-51: Removes unused function.
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
0aa7ecd5e8
Коммит
3b83cc7dd3
@@ -460,7 +460,7 @@ func (a *App) DoAdvancedPermissionsMigration() {
|
||||
|
||||
l4g.Info("Migrating roles to database.")
|
||||
roles := model.MakeDefaultRoles()
|
||||
roles = utils.SetRolePermissionsFromConfig(roles, a.Config())
|
||||
roles = utils.SetRolePermissionsFromConfig(roles, a.Config(), utils.IsLicensed())
|
||||
|
||||
allSucceeded := true
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user