Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2683699
D25298.1734687928.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
D25298.1734687928.diff
View Options
diff --git a/src/applications/people/xaction/PhabricatorUserEmpowerTransaction.php b/src/applications/people/xaction/PhabricatorUserEmpowerTransaction.php
--- a/src/applications/people/xaction/PhabricatorUserEmpowerTransaction.php
+++ b/src/applications/people/xaction/PhabricatorUserEmpowerTransaction.php
@@ -56,9 +56,15 @@
'%s empowered this user as an administrator.',
$this->renderAuthor());
} else {
- return pht(
- '%s defrocked this user.',
- $this->renderAuthor());
+ if (PhabricatorEnv::getEnvConfig('phabricator.serious-business')) {
+ return pht(
+ '%s removed the administrator role from this user.',
+ $this->renderAuthor());
+ } else {
+ return pht(
+ '%s defrocked this user.',
+ $this->renderAuthor());
+ }
}
}
@@ -70,10 +76,17 @@
$this->renderAuthor(),
$this->renderObject());
} else {
- return pht(
- '%s defrocked %s.',
- $this->renderAuthor(),
- $this->renderObject());
+ if (PhabricatorEnv::getEnvConfig('phabricator.serious-business')) {
+ return pht(
+ '%s removed the administrator role from %s.',
+ $this->renderAuthor(),
+ $this->renderObject());
+ } else {
+ return pht(
+ '%s defrocked %s.',
+ $this->renderAuthor(),
+ $this->renderObject());
+ }
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 09:45 (18 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1017234
Default Alt Text
D25298.1734687928.diff (1 KB)
Attached To
Mode
D25298: Add serious business string for defrocking a user (remove admin rights)
Attached
Detach File
Event Timeline
Log In to Comment