We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1584a7 commit fd0bb9aCopy full SHA for fd0bb9a
src/lib/utils/authorship.ts
@@ -192,7 +192,7 @@ export const isAdmin = (role: Roles): boolean => {
192
};
193
194
export const hasAuthority = (userId: string, authorId: string): boolean => {
195
- return userId.toLocaleLowerCase() === authorId.toLocaleLowerCase();
+ return userId.toLowerCase() === authorId.toLowerCase();
196
197
198
// Note: 公開 + 非公開(本人のみ)の問題集が閲覧できる
0 commit comments