add admin edit privileges for empl directory#69
Conversation
Resolved merge conflicts in EmployeeDirectory.tsx: kept main's API-fetching approach while adding isAdmin prop from this branch. Updated page.tsx to pass isAdmin from the already-fetched userMetadata. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Overall looks great! A couple things to note: This PR was based on an older version of EmployeeDirectory that took userId, username, userRole, and userMetadata as props. After PR #72 merged, the component was refactored to only take id and fetch employee data from the backend API. So I just went in and made a couple fixes: Merged main into this branch and resolved the conflict in EmployeeDirectory.tsx Again, good work! |
This PR changes employee directory admin permissions, by allowing users with admin privilege to edit other employee profiles in the directory. Previously, only users could edit their own profile, with no special admin permissions.