mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-19 22:13:48 -04:00
Removed edit permissions on the org users page.
Remove a user from organisation can be done later.
This commit is contained in:
@@ -55,8 +55,6 @@
|
||||
<li class="tick-cross-list-edit-link">
|
||||
{% if user.status == 'pending' %}
|
||||
<a href="{{ url_for('.cancel_invited_org_user', org_id=current_org.id, invited_user_id=user.id)}}">Cancel invitation</a>
|
||||
{% elif user.state == 'active' and current_user.id != user.id %}
|
||||
<a href="{{ url_for('.edit_user_org_permissions', org_id=current_org.id, user_id=user.id)}}">Edit permissions</a>
|
||||
{% endif %}
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import pytest
|
||||
|
||||
from bs4 import BeautifulSoup
|
||||
from flask import url_for, Response
|
||||
from flask import url_for
|
||||
|
||||
from datetime import (
|
||||
datetime,
|
||||
@@ -11,11 +11,9 @@ from datetime import (
|
||||
from tests.conftest import (
|
||||
normalize_spaces
|
||||
)
|
||||
from unittest.mock import ANY, Mock
|
||||
from unittest.mock import ANY
|
||||
from app.notify_client.models import InvitedOrgUser
|
||||
|
||||
from notifications_python_client.errors import HTTPError
|
||||
|
||||
|
||||
def test_organisation_page_shows_all_organisations(
|
||||
logged_in_platform_admin_client,
|
||||
|
||||
@@ -207,7 +207,6 @@ def test_register_from_invite(
|
||||
def test_register_from_invite_when_user_registers_in_another_browser(
|
||||
client,
|
||||
api_user_active,
|
||||
mock_is_email_not_unique,
|
||||
mock_get_user_by_email,
|
||||
mock_accept_invite,
|
||||
):
|
||||
|
||||
Reference in New Issue
Block a user