Skip to content

Commit

Permalink
Merge branch 'main' into enhance/tup-414-help-users-view-all-tickets
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleyboar authored Oct 2, 2023
2 parents 8a801c7 + e0268e3 commit fea9950
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 287 deletions.
10 changes: 6 additions & 4 deletions apps/tup-cms/src/apps/portal/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ def authenticate(self, request):

profile_url = f"{service_url}/users/profile"
headers = {"x-tup-token": token}

req = requests.get(profile_url, headers=headers)
if req.status_code != 200:
raise PermissionDenied

try:
req = requests.get(profile_url, headers=headers, timeout=10)
req.raise_for_status()
except Exception as exc:
raise PermissionDenied from exc

profile = req.json()
username = profile['username']
Expand Down

This file was deleted.

This file was deleted.

222 changes: 0 additions & 222 deletions libs/tup-components/src/projects/users/UserList/AddUserModal.tsx

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Button } from '@tacc/core-components';
import { useProject, useRoleForCurrentUser } from '@tacc/tup-hooks';
import styles from './UserList.module.css';
import AddUserModal from './AddUserModal';

const ManageTeam: React.FC<{ projectId: number }> = ({ projectId }) => {
const currentUserRole = useRoleForCurrentUser(projectId) ?? '';
Expand All @@ -26,7 +25,13 @@ const ManageTeam: React.FC<{ projectId: number }> = ({ projectId }) => {

return (
<div className={styles['user-navactions']}>
<AddUserModal projectId={projectId} />
<a
target="_blank"
rel="noreferrer"
href={`https://accounts.tacc.utexas.edu/project_invite?project_id=${projectId}`}
>
<Button>+ Add Users</Button>
</a>
</div>
);
};
Expand Down

0 comments on commit fea9950

Please sign in to comment.