[BUGFIX] Checkbox for mass-action also if only publish/swap-permission
authorRobert Heel <typo3.org@bobosch.de>
Sun, 20 Nov 2011 23:26:21 +0000 (00:26 +0100)
committerTolleiv Nietsch <info@tolleiv.de>
Fri, 23 Dec 2011 09:24:54 +0000 (10:24 +0100)
If user has only publish/swap permission show the
mass-action checkbox as well.

Change-Id: I04ccd6f08f3f56021ab29d91ac8aba7619f1e9cd
Fixes: #31122
Releases: 4.5, 4.6, 4.7
Reviewed-on: http://review.typo3.org/6756
Reviewed-by: Stefan Neufeind
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
Reviewed-by: Tolleiv Nietsch
Tested-by: Tolleiv Nietsch
typo3/sysext/workspaces/Resources/Public/JavaScript/component.js
typo3/sysext/workspaces/Resources/Public/JavaScript/grid.js

index 37e66f8..0ddbe1b 100644 (file)
@@ -192,7 +192,7 @@ TYPO3.Workspaces.RowExpander = new Ext.grid.RowExpander({
        hideable: false,
        getRowClass : function(record, rowIndex, p, ds) {
                cssClass = '';
-               if (!record.json.allowedAction_nextStage && !record.json.allowedAction_prevStage) {
+               if (!record.json.allowedAction_nextStage && !record.json.allowedAction_prevStage && !record.json.allowedAction_swap) {
                        cssClass = 'typo3-workspaces-row-disabled ';
                }
                if(this.state[record.id]) {
index fa89927..e1d0b8f 100644 (file)
@@ -71,7 +71,7 @@ TYPO3.Workspaces.SelectionModel = new Ext.grid.CheckboxSelectionModel({
        hidden: true,
        listeners: {
                beforerowselect : function (selection, rowIndex, keep, rec) {
-                       if (rec.json.allowedAction_nextStage || rec.json.allowedAction_prevStage) {
+                       if (rec.json.allowedAction_nextStage || rec.json.allowedAction_prevStage || rec.json.allowedAction_swap) {
                                return true;
                        } else {
                                return false;