mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-07-15 22:09:40 +08:00
Merge
--HG-- branch : dev
This commit is contained in:
commit
bc90af996c
1
.hgtags
1
.hgtags
@ -1 +1,2 @@
|
||||
e048b594f33613d53b59a3578d17511dc833ecb5 MIX10
|
||||
a6b8d094848d4efee67c787e52e5f7d358e3f0c1 0.5
|
||||
|
@ -47,9 +47,8 @@ namespace Orchard.Roles.Services {
|
||||
|
||||
for (var adjustmentLimiter = 0; adjustmentLimiter != 3; ++adjustmentLimiter) {
|
||||
if (!context.Granted && context.User != null) {
|
||||
if (String.Equals(context.User.UserName, "Administrator", StringComparison.OrdinalIgnoreCase) ||
|
||||
((!String.IsNullOrEmpty(CurrentSite.SuperUser) &&
|
||||
String.Equals(context.User.UserName, CurrentSite.SuperUser, StringComparison.OrdinalIgnoreCase)))) {
|
||||
if (!String.IsNullOrEmpty(CurrentSite.SuperUser) &&
|
||||
String.Equals(context.User.UserName, CurrentSite.SuperUser, StringComparison.OrdinalIgnoreCase)) {
|
||||
context.Granted = true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user