code: def permissions(self, actor, inherited=None):
          
          if inherited is not None:
              return inherited | super(BaseScopedNameMixin, self).permissions(actor)
          elif self.parent is not None and isinstance(self.parent, PermissionMixin):
              return self.parent.permissions(actor) | super(BaseScopedNameMixin, self).permissions(actor)
          else:
              return super(BaseScopedNameMixin, self).permissions(actor)
docs: Permissions for this model, plus permissions inherited from the parent.