[Bps-public-commit] rt-extension-assets branch, master, updated. 8e0ee647bc1fa4d4a2feaf74c72bca4392814c55

Alex Vandiver alexmv at bestpractical.com
Wed Oct 16 15:11:31 EDT 2013


The branch, master has been updated
       via  8e0ee647bc1fa4d4a2feaf74c72bca4392814c55 (commit)
      from  833855ed3a1d32e60b519a57c1db06b718d80455 (commit)

Summary of changes:
 html/User/Elements/AssetList | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

- Log -----------------------------------------------------------------
commit 8e0ee647bc1fa4d4a2feaf74c72bca4392814c55
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Wed Oct 16 15:05:17 2013 -0400

    Move ModifyAssetSearch earlier, so it can modify the set of roles

diff --git a/html/User/Elements/AssetList b/html/User/Elements/AssetList
index 7cfb637..4df4c6c 100644
--- a/html/User/Elements/AssetList
+++ b/html/User/Elements/AssetList
@@ -47,6 +47,7 @@
 %# END BPS TAGGED BLOCK }}}
 <%init>
 my $assets = RT::Assets->new($session{CurrentUser});
+$m->callback( CallbackName => 'ModifyAssetSearch', %ARGS, Assets => $assets, Roles => \@Roles );
 for my $role (@Roles) {
     $assets->RoleLimit(
         TYPE        => $role,
@@ -54,7 +55,6 @@ for my $role (@Roles) {
         SUBCLAUSE   => "Role$role",
     );
 }
-$m->callback( CallbackName => 'ModifyAssetSearch', %ARGS, Assets => $assets );
 my $Format = q[
     '<b><a href="__WebHomePath__/Asset/Display.html?id=__id__">__id__</a></b>/TITLE:#',
     '<b><a href="__WebHomePath__/Asset/Display.html?id=__id__">__Name__</a></b>/TITLE:Name',

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list