File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
app/(authenticated)/user/[id] Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,6 @@ export default async function ArbitraryUserPage({
6
6
} : {
7
7
params : { id : string } ;
8
8
} ) {
9
- await requirePermission ( "Admin.Users " ) ;
9
+ await requirePermission ( "People.ViewProfile.All " ) ;
10
10
return < UserPage id = { parseInt ( params . id , 10 ) } /> ;
11
11
}
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { z } from "zod";
4
4
* Available permissions. Should contain all the ones that users are expected
5
5
* to have, along with some special ones:
6
6
* * MEMBER - any logged in user
7
- * * PUBLIC - open to the world with no authentication
7
+ * * PUBLIC - open to the world with no authentication (not implemented)
8
8
* * SuperUser - can do anything (don't use this unless you know what you're doing)
9
9
*/
10
10
export const PermissionEnum = z . enum ( [
@@ -27,6 +27,7 @@ export const PermissionEnum = z.enum([
27
27
"CheckWithTech.Submit" ,
28
28
"CheckWithTech.Admin" ,
29
29
"ManageQuotes" ,
30
+ "People.ViewProfile.All" ,
30
31
"Admin.Users" ,
31
32
"Admin.Roles" ,
32
33
"Admin.Positions" ,
You can’t perform that action at this time.
0 commit comments