diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-01-16 03:16:44 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-16 03:16:44 +0900 |
| commit | 9f0dfb55177de0d1d20ea3b7c0608537efc4bf19 (patch) | |
| tree | 18c28d170402109096e2f76e4df1182cb54755af | |
| parent | Fix style of messaging form, use css module (#9602) (diff) | |
| download | misskey-9f0dfb55177de0d1d20ea3b7c0608537efc4bf19.tar.gz misskey-9f0dfb55177de0d1d20ea3b7c0608537efc4bf19.tar.bz2 misskey-9f0dfb55177de0d1d20ea3b7c0608537efc4bf19.zip | |
typo
| -rw-r--r-- | packages/backend/src/core/RoleService.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/backend/src/core/RoleService.ts b/packages/backend/src/core/RoleService.ts index abad058303..0ba5ca9a03 100644 --- a/packages/backend/src/core/RoleService.ts +++ b/packages/backend/src/core/RoleService.ts @@ -212,7 +212,7 @@ export class RoleService implements OnApplicationShutdown { if (p2.length > 0) return aggregate(p2.map(policy => policy.useDefault ? basePolicies[name] : policy.value)); const p1 = policies.filter(policy => policy.priority === 1); - if (p1.length > 0) return aggregate(p2.map(policy => policy.useDefault ? basePolicies[name] : policy.value)); + if (p1.length > 0) return aggregate(p1.map(policy => policy.useDefault ? basePolicies[name] : policy.value)); return aggregate(policies.map(policy => policy.useDefault ? basePolicies[name] : policy.value)); } |