mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
* clean up legacy access control code for teams * remove editorsCanAdmin config from the frontend * add editorsCanAdmin config option back for the frontend
12 lines
293 B
TypeScript
12 lines
293 B
TypeScript
import { Team, TeamState } from 'app/types';
|
|
|
|
export const getTeamGroups = (state: TeamState) => state.groups;
|
|
|
|
export const getTeam = (state: TeamState, currentTeamId: any): Team | null => {
|
|
if (state.team.id === parseInt(currentTeamId, 10)) {
|
|
return state.team;
|
|
}
|
|
|
|
return null;
|
|
};
|