function isEdit (group : IGroup) { if($config.isStaff){ return true } if (group.state === "APPROVED" ) { return false } return true }