From 61453eb0cceb337a4b75ee28313edec6324e6018 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Fri, 18 Dec 2015 12:33:02 -0500 Subject: [PATCH] require admin for refresh button --- dashboard-ui/scripts/librarybrowser.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dashboard-ui/scripts/librarybrowser.js b/dashboard-ui/scripts/librarybrowser.js index 2bb0c35758..84c6f5919b 100644 --- a/dashboard-ui/scripts/librarybrowser.js +++ b/dashboard-ui/scripts/librarybrowser.js @@ -784,7 +784,10 @@ commands.push('editimages'); } - commands.push('refresh'); + if (user.Policy.IsAdministrator) { + + commands.push('refresh'); + } if (SyncManager.isAvailable(item, user)) { commands.push('sync');