authz: factor out actorSubRepoEnabled
Created by: keegancsmith
This bit of logic seems to always gate if we do checks for an actor, mainly via most functions calling ActorPermissions. It is currently copy pasted in two functions, but I intend on needing these checks in more places by avoiding always going via ActorPermissions.
Test Plan: go test