First time here? Check out the FAQ!
1

Managed Groups visibility of Questions

I want to use managed groups in my environment. Unfortunately the feature does not work as expected. Users who have an open join request are able see and post questions in the group. From my point of view there should be an restriction, only accepted users should have these rights.

Is this feature missing, or do I need to create special permissions?

I use the current askbot version from git.

clemens's avatar
11
clemens
asked 2013-10-20 04:26:47 -0500, updated 2013-10-20 04:29:02 -0500
edit flag offensive 0 remove flag close merge delete

Comments

1

It seems to be a missing feature, I added following code to the assert_is_visible_to_user_groups function in post.py user_groups_ids = set(user.get_groups().values_list('id', flat = True)) user_groups_membership_ids = set(GroupMembership.objects.filter(group__in = user_groups_ids, level = GroupMembership.PENDING).values_list('group_id', flat = True)) user_groups = user_groups_ids - user_groups_membership_ids if post_groups.filter(id__in = user_groups).count() == 0: raise exception(message) This fixed my problem

clemens's avatar clemens (2013-10-20 05:29:45 -0500) edit
add a comment see more comments

1 Answer

0

Hi Clemens, this feature is not implemented yet (limiting visibility by user group). We'll need to think of how to do this best, leaving this as a "feature request" for now.

Evgeny's avatar
13.2k
Evgeny
answered 2013-10-29 14:28:17 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments