[Edit] Add policy for the Edit action

Allow Edit mode only when editable views exist, WTD-1062.
This commit is contained in:
Victor Woeltjen
2015-04-01 15:45:43 -07:00
parent e3ec9c6130
commit ccf2ccc4c6
4 changed files with 70 additions and 2 deletions

View File

@@ -89,7 +89,7 @@ define(
// Convert to an array if necessary
categories = Array.isArray(categories) ?
categories : [categories];
categories : [categories];
// Store action under all relevant categories
categories.forEach(function (category) {