summaryrefslogtreecommitdiffstats
path: root/app/class/group.class.php
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2018-11-10 09:40:01 -0500
committerMalf Furious <m@lfurio.us>2018-11-10 09:40:01 -0500
commitd3a056dc753eb159daeb0cc2900d718f41ef6585 (patch)
treea00213ae131a02ba0013d35311eb9caa97ce6798 /app/class/group.class.php
parentdc82ea4c3ab3892d9f94cae73832d2c09e2ad3b2 (diff)
parentbe18c21941eb1309047e5cede3467cc538e71559 (diff)
downloadscrott-d3a056dc753eb159daeb0cc2900d718f41ef6585.tar.gz
scrott-d3a056dc753eb159daeb0cc2900d718f41ef6585.zip
Merge branch 'bug/opt-assign-to-grp' into dev
Diffstat (limited to 'app/class/group.class.php')
-rw-r--r--app/class/group.class.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/class/group.class.php b/app/class/group.class.php
index 1191d71..600fb6d 100644
--- a/app/class/group.class.php
+++ b/app/class/group.class.php
@@ -64,6 +64,17 @@ class group extends agent
}
/*
+ * Get all contained users. This is an array of all members and
+ * the group owner.
+ */
+ public function getContainedUsers() : array
+ {
+ $cus = $this->getMembers();
+ $cus[] = $this->getOwner();
+ return $cus;
+ }
+
+ /*
* Send an email message to this group using stored configuration
* parameters. If config is not established, delivery is not
* attempted. Return status. If any delivery attempts fail, the