View Single Post
  #50 (permalink)  
Old 07-12-2008, 04:07 AM
koveras225 koveras225 is offline
Junior Member
 
Join Date: Jul 2008
Posts: 1
koveras225 is on a distinguished road
Default Re: Fine Grained Role Based Access Control (RBAC) system

I just downloaded this a few days ago and was exploring the code to get a better idea of how it works. I noticed something that seems rather odd and no matter what values I throw at it can't make any sense of it.

Code:
else if ($new_weight == $weight && (int) $is_allowed === 1 && (int) $is_allowed === 0){
This line in class.rbac_bv.php as far as I can tell, will never return true and run the code within the block. Perhaps I'm wrong, although I've just spent the last hour throwing values at it and haven't got it to return true. Is it an error, a mistype of !== or something perhaps? Or am I completely missing something...
Reply With Quote