PermissionMixin now checks if parent is not None.