AccessControl: introduce a different accesscontrol check (licensed or not) (#44777)

Co-authored-by: ievaVasiljeva <ieva.vasiljeva@grafana.com>
This commit is contained in:
Gabriel MABILLE
2022-02-03 16:27:53 +01:00
committed by GitHub
co-authored by ievaVasiljeva
parent 602d62ebcc
commit 86756ee3e5
5 changed files with 17 additions and 13 deletions
+3 -3
View File
@@ -43,7 +43,7 @@ export class TeamList extends PureComponent<Props, State> {
componentDidMount() {
this.fetchTeams();
if (contextSrv.accessControlEnabled()) {
if (contextSrv.licensedAccessControlEnabled()) {
this.fetchRoleOptions();
}
}
@@ -89,7 +89,7 @@ export class TeamList extends PureComponent<Props, State> {
<td className="link-td">
<a href={teamUrl}>{team.memberCount}</a>
</td>
{contextSrv.accessControlEnabled() && (
{contextSrv.licensedAccessControlEnabled() && (
<td>
<TeamRolePicker teamId={team.id} getRoleOptions={async () => this.state.roleOptions} />
</td>
@@ -155,7 +155,7 @@ export class TeamList extends PureComponent<Props, State> {
<th>Name</th>
<th>Email</th>
<th>Members</th>
{contextSrv.accessControlEnabled() && <th>Roles</th>}
{contextSrv.licensedAccessControlEnabled() && <th>Roles</th>}
<th style={{ width: '1%' }} />
</tr>
</thead>