Skip to content

Commit c5a0a74

Browse files
committed
minor docstring and code cleanup
1 parent 82232af commit c5a0a74

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

coldfront/core/project/templates/project/project_remove_users.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ <h2>Remove users from project: {{project.title}}</h2>
1919
<p>
2020
To be removed from a lab, the user must not have the lab as their primary
2121
group. If you would like to remove a user that has your lab as their primary
22-
group, please contact FASRC support.
22+
group, please <a href="https://portal.rc.fas.harvard.edu/rcrt/submit_ticket">
23+
contact FASRC support</a>.
2324
</p>
2425
<form action="{% url 'project-remove-users' project.pk %}" method="post">
2526
{% csrf_token %}

coldfront/core/project/test_views.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
from coldfront.core.test_helpers import utils
66
from coldfront.core.test_helpers.factories import (
77
setup_models,
8-
UserFactory,
98
ProjectFactory,
10-
ProjectUserFactory,
119
PAttributeTypeFactory,
1210
ProjectAttributeFactory,
1311
ProjectStatusChoiceFactory,

coldfront/plugins/ldap/utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,9 @@ def remove_member_from_group(self, user_name, group_name):
192192
return result
193193

194194
def users_in_primary_group(self, usernames, groupname):
195-
"""Return two lists of users based on membership in the specified group.
195+
"""
196+
Return list of usernames representing users that are members of the
197+
designated AD Group
196198
"""
197199
group = self.return_group_by_name(groupname)
198200
attrs = ['sAMAccountName', 'gidNumber']

0 commit comments

Comments
 (0)