View | Details | Raw Unified | Return to bug 20439
Collapse All | Expand All

(-)a/ucs-4.0-2/management/univention-management-console-module-udm/umc/js/udm.js (-2 / +8 lines)
 Lines 517-522   define([ Link Here 
517
				iconClass: 'umcIconEdit',
517
				iconClass: 'umcIconEdit',
518
				isStandardAction: true,
518
				isStandardAction: true,
519
				isMultiAction: true,
519
				isMultiAction: true,
520
				canExecute: lang.hitch(this, '_canEdit'),
520
				callback: lang.hitch(this, function(ids, items) {
521
				callback: lang.hitch(this, function(ids, items) {
521
					if (items.length == 1 && items[0].objectType) {
522
					if (items.length == 1 && items[0].objectType) {
522
						this.createDetailPage(items[0].objectType, ids[0]);
523
						this.createDetailPage(items[0].objectType, ids[0]);
 Lines 541-546   define([ Link Here 
541
				label: _('Edit in new tab'),
542
				label: _('Edit in new tab'),
542
				description: _( 'Open a new tab in order to edit the UDM-object' ),
543
				description: _( 'Open a new tab in order to edit the UDM-object' ),
543
				isMultiAction: false,
544
				isMultiAction: false,
545
				canExecute: lang.hitch(this, '_canEdit'),
544
				callback: lang.hitch(this, function(ids, items) {
546
				callback: lang.hitch(this, function(ids, items) {
545
					var moduleProps = {
547
					var moduleProps = {
546
						openObject: {
548
						openObject: {
 Lines 961-978   define([ Link Here 
961
			domClass.add(this._grid._grid.domNode, 'umcDynamicHeight-55');
963
			domClass.add(this._grid._grid.domNode, 'umcDynamicHeight-55');
962
		},
964
		},
963
965
966
		_canEdit: function(item) {
967
			return item.$operations$.indexOf('edit') !== -1;
968
		},
969
964
		_canMove: function(item) {
970
		_canMove: function(item) {
965
			if (tools.isTrue(this._ucr['ad/member'])) {
971
			if (tools.isTrue(this._ucr['ad/member'])) {
966
				return -1 === array.indexOf(item.$flags$, 'synced');
972
				return -1 === array.indexOf(item.$flags$, 'synced');
967
			}
973
			}
968
			return true;
974
			return item.$operations$.indexOf('move') !== -1;
969
		},
975
		},
970
976
971
		_canDelete: function(item) {
977
		_canDelete: function(item) {
972
			if (tools.isTrue(this._ucr['ad/member'])) {
978
			if (tools.isTrue(this._ucr['ad/member'])) {
973
				return -1 === array.indexOf(item.$flags$, 'synced');
979
				return -1 === array.indexOf(item.$flags$, 'synced');
974
			}
980
			}
975
			return true;
981
			return item.$operations$.indexOf('remove') !== -1;
976
		},
982
		},
977
983
978
		_reloadSuperordinates: function() {
984
		_reloadSuperordinates: function() {
(-)a/ucs-4.0-2/management/univention-management-console-module-udm/umc/python/udm/__init__.py (+1 lines)
 Lines 569-574   def _thread(request): Link Here 
569
					'$dn$': obj.dn,
569
					'$dn$': obj.dn,
570
					'$childs$': module.childs,
570
					'$childs$': module.childs,
571
					'$flags$': obj.oldattr.get('univentionObjectFlag', []),
571
					'$flags$': obj.oldattr.get('univentionObjectFlag', []),
572
					'$operations$': module.operations,
572
					'objectType': module.name,
573
					'objectType': module.name,
573
					'labelObjectType': module.subtitle,
574
					'labelObjectType': module.subtitle,
574
					'name': module.obj_description(obj) or udm_objects.description(obj),
575
					'name': module.obj_description(obj) or udm_objects.description(obj),

Return to bug 20439