add isBlank

This commit is contained in:
kittapath 2024-10-03 15:37:28 +07:00
parent e805759af5
commit 85657d1c32
3 changed files with 39 additions and 18 deletions

View file

@ -621,7 +621,8 @@ export class OrganizationController extends Controller {
// let attrOwnership = null;
if (
orgRevision.orgRevisionIsDraft == true &&
orgRevision.orgRevisionIsCurrent == false
orgRevision.orgRevisionIsCurrent == false &&
request.user.role.includes("SUPER_ADMIN")
// attrOwnership == false
) {
const profile = await this.profileRepo.findOne({