Ask Your Question
1

Managed Groups visibility of Questions

asked 2013-10-20 04:26:47 -0500

clemens gravatar image

updated 2013-10-20 04:29:02 -0500

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.

edit retag flag offensive 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 gravatar imageclemens ( 2013-10-20 05:29:45 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-10-29 14:28:17 -0500

Evgeny gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-10-20 04:26:47 -0500

Seen: 186 times

Last updated: Oct 29 '13