mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Fixing IsInRoleActivity flow output.
This commit is contained in:
@@ -48,8 +48,9 @@ namespace Orchard.Roles.Activities {
|
||||
if (UserIsInRole(activityContext)) {
|
||||
yield return T("Yes");
|
||||
}
|
||||
|
||||
yield return T("No");
|
||||
else {
|
||||
yield return T("No");
|
||||
}
|
||||
}
|
||||
|
||||
private bool UserIsInRole(ActivityContext context) {
|
||||
|
||||
Reference in New Issue
Block a user