Changeset 0.28.0.3 (#175)
This commit is contained in:
@@ -466,7 +466,7 @@ Object.assign(UI, {
|
||||
// Handle policy check
|
||||
const allowed = resp.allow_team_providers !== false;
|
||||
if (addBtn) addBtn.style.display = allowed ? '' : 'none';
|
||||
if (!allowed && !(resp.providers || []).length) {
|
||||
if (!allowed && !(resp.data || resp.providers || []).length) {
|
||||
throw { message: 'Team provider management is disabled by your administrator', _empty: true };
|
||||
}
|
||||
return resp;
|
||||
|
||||
Reference in New Issue
Block a user