-
-
Notifications
You must be signed in to change notification settings - Fork 31
refactor(api/web): use cuhacking logo on cms instead of local asset #360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ import { | |
authenticated, | ||
isOrganizer, | ||
isOrganizerOrSelf, | ||
isOrganizerOrSponsor, | ||
isSuperAdmin, | ||
} from "@/db/access"; | ||
import { navAccordions } from "@/db/collections/navAccordions"; | ||
|
@@ -266,7 +267,7 @@ export const Users: CollectionConfig = { | |
}, | ||
}, | ||
access: { | ||
admin: isSelf, | ||
admin: isOrganizerOrSponsor, | ||
read: isOrganizerOrSelf, | ||
create: authenticated, | ||
update: isSelf || isOrganizer || isSuperAdmin, | ||
|
@@ -276,11 +277,8 @@ export const Users: CollectionConfig = { | |
// afterChange: [loginAfterCreate], | ||
// }, | ||
admin: { | ||
// hidden: (user) => { | ||
// if (user?.id === 1){ | ||
// return false | ||
// } | ||
// return user?.group?.name === "Organizer" ? false : true | ||
// hidden: ({user}) => { | ||
// return user?.group?.name === "Hacker" | ||
Comment on lines
+280
to
+281
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Commented-out hiding logic. |
||
// }, | ||
livePreview: { | ||
url: `${process.env.CUHACKING_2025_PORTAL_LOCAL_URL}/profile`, | ||
|
@@ -528,11 +526,15 @@ export const Users: CollectionConfig = { | |
{ | ||
label: "Emergency Contact", | ||
type: "collapsible", | ||
admin: { | ||
hidden: true | ||
}, | ||
fields: [ | ||
{ | ||
type: "row", | ||
fields:[ | ||
{ name: "emergencyContactFullName", type: "text", label: "Full Name" }, | ||
{ name: "emergencyContactFullName", type: "text", label: "Full Name", | ||
}, | ||
{ | ||
name: "emergencyContactRelationship", | ||
type: "select", | ||
|
@@ -612,7 +614,9 @@ export const Users: CollectionConfig = { | |
{ | ||
type: "collapsible", | ||
label: "GitHub", | ||
admin: { readOnly: true }, | ||
admin: { | ||
hidden: true | ||
}, | ||
Comment on lines
+617
to
+619
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Hidden GitHub collapsible. |
||
fields: [ | ||
{ | ||
name: "githubUrl", | ||
|
@@ -706,6 +710,9 @@ export const Users: CollectionConfig = { | |
{ | ||
type: "collapsible", | ||
label: "Discord", | ||
admin: { | ||
hidden: true | ||
}, | ||
fields: [ | ||
{ | ||
name: "discordUsername", | ||
|
@@ -742,6 +749,9 @@ export const Users: CollectionConfig = { | |
{ | ||
type: "collapsible", | ||
label: "Google", | ||
admin: { | ||
hidden: true | ||
}, | ||
fields: [ | ||
{ name: "googleEmail", type: "email" }, | ||
{ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix syntax error in isOrganizerOrSponsor function.
The function has a syntax error with a misplaced semicolon after the nested if statements, which will cause runtime errors.
📝 Committable suggestion