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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
clemens's avatar
11
clemens
asked 11 years ago, updated 11 years ago

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 (11 years ago)
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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 11 years ago
link

Comments

see more comments