diff Lib/IMPL/Security/AbstractContext.pm @ 238:b8c724f6de36

DOM model refactoring TT view refactoring, controls are no longer derived from DOM nodes bugfixes
author sergey
date Tue, 16 Oct 2012 01:33:06 +0400
parents 6d8092d8ce1b
children 2879cdb6b8cd
line wrap: on
line diff
--- a/Lib/IMPL/Security/AbstractContext.pm	Mon Oct 15 17:39:12 2012 +0400
+++ b/Lib/IMPL/Security/AbstractContext.pm	Tue Oct 16 01:33:06 2012 +0400
@@ -19,7 +19,7 @@
 my $current; # current session if any
 
 sub Impersonate {
-    my ($this,$code) = @_;
+    my ($this,$code,@args) = @_;
     
     my $old = $current;
     $current = $this;
@@ -29,7 +29,7 @@
     {
         local $@;
         eval {
-            $result = $code->();
+            $result = $code->(@args);
         };
         $e = $@;
     }