diff Lib/IMPL/Security/Role.pm @ 94:79bf75223afe

Fixed security related bugs
author wizard
date Thu, 29 Apr 2010 01:31:27 +0400
parents 2f31ecabe9ea
children b56ebc31bf18
line wrap: on
line diff
--- a/Lib/IMPL/Security/Role.pm	Wed Apr 28 17:50:55 2010 +0400
+++ b/Lib/IMPL/Security/Role.pm	Thu Apr 29 01:31:27 2010 +0400
@@ -20,6 +20,7 @@
 	my ($this,@roles) = @_;	
 	
 	return 1 unless $this->_FilterRoles( @roles );
+	return 0;
 }
 
 sub _FilterRoles {
@@ -27,7 +28,7 @@
 	
 	@roles = grep not (ref $_ ? $this == $_ : $this->roleName eq $_), @roles;
 	
-	@roles = $_->_FilterRoles(@roles) or return foreach @{$this->parentRoles} ;
+	@roles = $_->_FilterRoles(@roles) or return foreach $this->parentRoles ;
 	
 	return @roles;
 }