Use billed_user_ids to fetch users in namespace
relate #3701
What does this MR do and why?
- refactor: rename subject to subject(:service) due to latest rubocop rules
- change scan logic: use
EE:Group.billed_user_ids
to return all billable users, which will notreturn guest role in ultimate plan namespace
, butdo return guest role in premium plan
, which meansuser as guest role in ultimate plan
will be blocked,user as guest role in premium plan
will NOT be blocked.
由 毛超 编辑于