From 95b93fb5dd2327263109fba6d62dbe03992912c1 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Wed, 3 Feb 2010 18:33:04 -0800 Subject: [PATCH] Add triggers to groupIdEdit, groupIdView and ownerUserId so that File.pm can override them to set storage location privileges. --- lib/WebGUI/Asset.pm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/WebGUI/Asset.pm b/lib/WebGUI/Asset.pm index 7e1d965fb..1bb0ba077 100644 --- a/lib/WebGUI/Asset.pm +++ b/lib/WebGUI/Asset.pm @@ -124,7 +124,11 @@ property ownerUserId => ( uiLevel => 6, fieldType => 'user', default => '3', + trigger => \&_set_ownerUserId, ); +sub _set_ownerUserId { + return; +} property groupIdView => ( tab => "security", label => ['872','Asset'], @@ -132,7 +136,11 @@ property groupIdView => ( uiLevel => 6, fieldType => 'group', default => '7', + trigger => \&_set_groupIdView, ); +sub _set_groupIdView { + return; +} property groupIdEdit => ( tab => "security", label => ['871','Asset'], @@ -141,7 +149,11 @@ property groupIdEdit => ( uiLevel => 6, fieldType => 'group', default => '4', + trigger => \&_set_groupIdEdit, ); +sub _set_groupIdEdit { + return; +} property synopsis => ( tab => "meta", label => ['412','Asset'],