Skip to content

Commit b298f87

Browse files
committed
feat(setup): add "user:read" to student scope set
1 parent 3d67eef commit b298f87

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

internal/setup/setup.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,14 @@ func Setup(ctx context.Context, entClient *ent.Client) (*SetupResult, error) {
6767
studentScopeSet, err = entClient.ScopeSet.Create().
6868
SetSlug(useraccount.StudentScopeSetSlug).
6969
SetDescription("The necessary permissions for using the main app").
70-
SetScopes([]string{"me:*", "question:read", "database:read", "ai"}).
70+
SetScopes([]string{
71+
"me:*",
72+
"question:read",
73+
"database:read",
74+
"ai",
75+
"submission:write",
76+
"user:read",
77+
}).
7178
Save(ctx)
7279
if err != nil {
7380
return nil, err

0 commit comments

Comments
 (0)