mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Permissions: Show plugins in nav for non admin users but hide plugin configuration (#18234)
Allow non admins to see plugins list but only with readme. Any config tabs are hidden from the plugin page. Also plugin panel does not show action buttons (like Enable) for non admins.
This commit is contained in:
@@ -35,6 +35,9 @@ import { DashboardRouteInfo } from 'app/types';
|
||||
export function setupAngularRoutes($routeProvider: route.IRouteProvider, $locationProvider: ILocationProvider) {
|
||||
$locationProvider.html5Mode(true);
|
||||
|
||||
// Routes here are guarded both here and server side for react-container routes or just on the server for angular
|
||||
// ones. That means angular ones could be navigated to in case there is a client side link some where.
|
||||
|
||||
$routeProvider
|
||||
.when('/', {
|
||||
template: '<react-container />',
|
||||
|
||||
Reference in New Issue
Block a user