Hi,
I have two operations set up …
I need to make it so it only "allows" if both operations return true, not just one.
So not …
Op1 OR Op2
But …
Op1 AND Op2
How is this does in Yii?
array("allow",
"controllers" => array("company"),
"actions" => array("delete"),
"roles" => array("delete_sub_company")
),
Need something similar to this …
array("allow",
"controllers" => array("company"),
"actions" => array("delete"),
"roles" => array("delete_sub_company")
"message" => "You cannot delete this company"
),
array("allow",
"controllers" => array("company"),
"actions" => array("delete"),
"roles" => array("max_companies")
"message" = "You have reached max companies"
),
So it only allows if both operations are true, this is made more complex by the fact that both operations have different error messages.