-
Notifications
You must be signed in to change notification settings - Fork 11
user flag groups #396
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
user flag groups #396
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
c491cc1
1st draft
simonLeary42 6493b97
modifiers
simonLeary42 7ab6665
setup mail templates
simonLeary42 080d617
explicit
simonLeary42 256b5d1
migration instructions
simonLeary42 d5d03c5
remove unused functions
simonLeary42 3770915
add new posixGroups to LDAP, group OUs together
simonLeary42 f55c407
add missing semicolon
simonLeary42 2f75f0e
add type declaration
simonLeary42 0e33973
fix mail recipient
simonLeary42 306a5cf
"modifier" -> "flag"
simonLeary42 1e20db0
update convention
simonLeary42 db9530e
move to enum
simonLeary42 1000e4e
fix phpunit notice
simonLeary42 33f9573
Update resources/lib/UnityLDAP.php
simonLeary42 a0a5037
Update resources/lib/UnityLDAP.php
simonLeary42 ec00742
Update test/phpunit-bootstrap.php
simonLeary42 ee01745
get value of enum
simonLeary42 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| <?php use UnityWebPortal\lib\UserFlag; ?> | ||
| <?php switch ($data["flag"]): | ||
| case UserFlag::QUALIFIED: ?> | ||
| <?php $this->Subject = "User Activated"; ?> | ||
| <p>Hello,</p> | ||
| <p>Your account on the UnityHPC Platform has been activated. Your account details are below:</p> | ||
| <p> | ||
| <strong>Username</strong> <?php echo $data["user"]; ?> | ||
| <br> | ||
| <strong>Organization</strong> <?php echo $data["org"]; ?> | ||
| </p> | ||
| <p> | ||
| See the | ||
| <a href="<?php echo CONFIG["site"]["getting_started_url"]; ?>">Getting Started</a> | ||
| page in our documentation for next steps. | ||
| </p> | ||
| <p>If you believe this to be a mistake, please reply to this email as soon as possible.</p> | ||
| <?php break; ?> | ||
|
|
||
| <?php /////////////////////////////////////////////////////////////////////////////////////////// ?> | ||
| <?php case UserFlag::GHOST: ?> | ||
| <?php $this->Subject = "User Deleted"; ?> | ||
| <p>Hello,</p> | ||
| <p>Your account on the UnityHPC Platform has been deleted.</p> | ||
| <p>If you believe this to be a mistake, please reply to this email as soon as possible.</p> | ||
| <?php break; ?> | ||
|
|
||
| <?php /////////////////////////////////////////////////////////////////////////////////////////// ?> | ||
| <?php case UserFlag::LOCKED: ?> | ||
| <?php $this->Subject = "User Locked"; ?> | ||
| <p>Hello,</p> | ||
| <p>Your account on the UnityHPC Platform has been locked.</p> | ||
| <p>If you believe this to be a mistake, please reply to this email as soon as possible.</p> | ||
| <?php break; ?> | ||
|
|
||
| <?php /////////////////////////////////////////////////////////////////////////////////////////// ?> | ||
| <?php case UserFlag::IDLELOCKED: ?> | ||
| <?php $this->Subject = "User Locked"; ?> | ||
| <p>Hello,</p> | ||
| <p>Your account on the UnityHPC Platform has been locked due to inactivity.</p> | ||
| <p>If you believe this to be a mistake, please reply to this email as soon as possible.</p> | ||
| <?php break; ?> | ||
|
|
||
| <?php /////////////////////////////////////////////////////////////////////////////////////////// ?> | ||
| <?php case UserFlag::ADMIN: ?> | ||
| <?php $this->Subject = "User Promoted"; ?> | ||
| <p>Hello,</p> | ||
| <p>Your account on the UnityHPC Platform has been promoted to admin.</p> | ||
| <p>If you believe this to be a mistake, please reply to this email as soon as possible.</p> | ||
| <?php break; ?> | ||
|
|
||
| <?php /////////////////////////////////////////////////////////////////////////////////////////// ?> | ||
| <?php default: ?> | ||
| <?php throw new \Exception("unknown flag: " . $data["flag"]); ?> | ||
| <?php endswitch; ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| <?php use UnityWebPortal\lib\UserFlag; ?> | ||
| <?php switch ($data["flag"]): | ||
| case UserFlag::QUALIFIED: ?> | ||
| <?php $this->Subject = "User Qualified"; ?> | ||
| <p>Hello,</p> | ||
| <p>User "<?php echo $data["user"] ?>" has been qualified. </p> | ||
| <?php break; ?> | ||
|
|
||
| <?php /////////////////////////////////////////////////////////////////////////////////////////// ?> | ||
| <?php case UserFlag::GHOST: ?> | ||
| <?php $this->Subject = "User Ghosted"; ?> | ||
| <p>Hello,</p> | ||
| <p>User "<?php echo $data["user"] ?>" has been marked as ghost. </p> | ||
| <?php break; ?> | ||
|
|
||
| <?php /////////////////////////////////////////////////////////////////////////////////////////// ?> | ||
| <?php case UserFlag::LOCKED: ?> | ||
| <?php $this->Subject = "User Locked"; ?> | ||
| <p>Hello,</p> | ||
| <p>User "<?php echo $data["user"] ?>" has been locked. </p> | ||
| <?php break; ?> | ||
|
|
||
| <?php /////////////////////////////////////////////////////////////////////////////////////////// ?> | ||
| <?php case UserFlag::IDLELOCKED: ?> | ||
| <?php $this->Subject = "User Idle Locked"; ?> | ||
| <p>Hello,</p> | ||
| <p>User "<?php echo $data["user"] ?>" has been idle locked. </p> | ||
| <?php break; ?> | ||
|
|
||
| <?php /////////////////////////////////////////////////////////////////////////////////////////// ?> | ||
| <?php case UserFlag::ADMIN: ?> | ||
| <?php $this->Subject = "User Promoted"; ?> | ||
| <p>Hello,</p> | ||
| <p>User "<?php echo $data["user"] ?>" has been promoted to admin. </p> | ||
| <?php break; ?> | ||
|
|
||
| <?php /////////////////////////////////////////////////////////////////////////////////////////// ?> | ||
| <?php default: ?> | ||
| <?php throw new \Exception("unknown flag: " . $data["flag"]); ?> | ||
| <?php endswitch; ?> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.