From 71bdabe1a11339a6206020c99bf8dfcabd5b3f05 Mon Sep 17 00:00:00 2001 From: Riccardo Magliocchetti Date: Thu, 11 Aug 2016 08:10:59 +0200 Subject: [PATCH] dashboard: don't enable buttons that would fail (#881) With gamma users saving the dashboard model would fail if they are not owner of the dashboard. So if that's not the case just disable the "Add a new slice to the dashboard" and "Save the current positioning and CSS". Refs #359 --- caravel/templates/caravel/dashboard.html | 2 +- caravel/views.py | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/caravel/templates/caravel/dashboard.html b/caravel/templates/caravel/dashboard.html index d5a62cf266..9eb12e44ed 100644 --- a/caravel/templates/caravel/dashboard.html +++ b/caravel/templates/caravel/dashboard.html @@ -82,7 +82,7 @@ -