while i use ‘allow’ rule in ‘accessControl’ filter,which always be allow.
i don’t understand why CAccessRule::isUserAllowed()'s return value 0 is need.
if i delete it,it’s all ok.
oh…this is a bug or…
while i use ‘allow’ rule in ‘accessControl’ filter,which always be allow.
i don’t understand why CAccessRule::isUserAllowed()'s return value 0 is need.
if i delete it,it’s all ok.
oh…this is a bug or…
without a look at your code it’s difficult to say if it’s a bug or something else…
i have replaced one ‘allow’ with multiple ‘deny’ in my ‘accessControl’ rules.
while i use ‘allow’ in accessControl’s rule,the action with being filtered will always be executed.
if i replace 0 with -1 in CAccessRule::isUserAllowed(),‘allow’ run in my expectation.
so i said:"allow always be allowed!"