Are boolean operators supported in policy checks?

policy do
  authorize_if relate_actor(:user) && changing_attributes([:first_name]) && expr(status == :active)
end

I just want to ask if something like below is possible? I don’t find any docs that tells me whether this’ll work so I’m quite unsure about having such checks in my project.

You should not use && but you can do it like this

policy do
  forbid_unless relate_actor(:user)
  forbid_unless changing_attributes([:first_name])
  authorize_if expr(status == :active)
end