Skip to content

Commit

Permalink
Only allow desk officers to add credit
Browse files Browse the repository at this point in the history
  • Loading branch information
fpagnoux committed Nov 8, 2024
1 parent 6ac59e5 commit 3906d4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/People/PersonProfile/PersonProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { WaiverForm } from "./WaiverForm";
export function PersonProfile() {
const [isEditing, setEditing] = useState<boolean>(false);
const [showDeskCreditForm, setShowDeskCreditForm] = useState<boolean>(false);
const { isOfficer } = usePermissions();
const { isDeskManager } = usePermissions();

const onEdit = () => {
setEditing(true);
Expand Down Expand Up @@ -89,7 +89,7 @@ export function PersonProfile() {
<div>
<strong>Mitoc credit:</strong> ${person.mitocCredit}
</div>
{isOfficer && (
{isDeskManager && (
<ToggleExpandButton
onClick={() => setShowDeskCreditForm((current) => !current)}
isOpen={showDeskCreditForm}
Expand Down

0 comments on commit 3906d4d

Please sign in to comment.