hasPostPermissions method
Post permission is only allowed if
Group is created by me
Post Level
of a tab section is allowed is PostLevel.Anyone
Implementation
bool hasPostPermissions(Section? tab) {
if (isByMe) {
return true;
} else if (myRole == Role.Moderator || myRole == Role.Admin) {
return true;
} else if (joined && tab != null && tab.hasPostPermissions) {
return true;
}
return false;
}