Skip to content

Commit fc9b5db

Browse files
authored
added toLowerCase() (hobbyfarm#233)
1 parent 15d1ecc commit fc9b5db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/data/rbac.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export class RbacService {
4242
this.userAccess = lastValueFrom(
4343
this.garg.get('/access').pipe(
4444
map((s: ServerResponse) => {
45-
const accessSet: AccessSet = JSON.parse(atou(s.content));
45+
const accessSet: AccessSet = JSON.parse(atou(s.content).toLowerCase()); // toLowerCase() needed. See https://github.com/hobbyfarm/hobbyfarm/issues/477
4646
return accessSet;
4747
}),
4848
),

0 commit comments

Comments
 (0)