Skip to content

Commit 45e8a5c

Browse files
committed
mailToPIGID -> ownerMail2GID
1 parent 25572b8 commit 45e8a5c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

resources/lib/UnityGroup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ public static function GID2OwnerUID(string $gid): string
478478
return substr($gid, strlen(self::PI_PREFIX));
479479
}
480480

481-
public static function mailToPIGID($email)
481+
public static function ownerMail2GID($email)
482482
{
483483
global $LDAP;
484484
$entry = $LDAP->getUidFromEmail($email);

webroot/panel/groups.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
if (isset($_POST["pi"])) {
1313
$pi_groupname = $_POST["pi"];
1414
if (substr($pi_groupname, 0, 3) !== "pi_" && str_contains($pi_groupname, "@")) {
15-
$pi_groupname = UnityGroup::mailToPIGID($pi_groupname);
15+
$pi_groupname = UnityGroup::ownerMail2GID($pi_groupname);
1616
}
1717
$pi_account = new UnityGroup($pi_groupname, $LDAP, $SQL, $MAILER, $REDIS, $WEBHOOK);
1818
if (!$pi_account->exists()) {

webroot/panel/new_account.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
if ($_POST["new_user_sel"] == "not_pi") {
2727
$pi_groupname = $_POST["pi"];
2828
if (substr($pi_groupname, 0, 3) !== "pi_" && str_contains($pi_groupname, "@")) {
29-
$pi_groupname = UnityGroup::mailToPIGID($pi_groupname);
29+
$pi_groupname = UnityGroup::ownerMail2GID($pi_groupname);
3030
}
3131
$form_group = new UnityGroup($pi_groupname, $LDAP, $SQL, $MAILER, $REDIS, $WEBHOOK);
3232
if (!$form_group->exists()) {

0 commit comments

Comments
 (0)