Skip to content
This repository was archived by the owner on Nov 16, 2024. It is now read-only.
This repository was archived by the owner on Nov 16, 2024. It is now read-only.

Prevent users to join groups based on xprofile field value? #2

@BoweFrankema

Description

@BoweFrankema

Hi Mathieu,

I think this is a very interesting plugin to add alternative privacy to Groups, and it sits nicely in the middle of a private and a public group. I was wondering if this "new" group could have an additional feature which is an (group) admin option to allow only members with a certain xprofile field value to join. It could work something like this:

1: Site admin selects which fields are "available" to be used for "Group Access" right.

For example the site admin chooses "Your Position in our Company" which has the values:

  • Manager
  • Developer

2: On the "Control" tab the Group Admin now gets the following new option

"Enable access to members based on the profile field "Your Position in our Company"

[ ] All
[ x ] Manager
[ ] Developer

*currently you have allowed only Manager to join this group.

3: Displaying the Groups/Access Control message

There are a few possible ways this functionality could be implemented

  • Only the groups that the users has access to are shown (so basically show the ones where he/she has access too)
  • The "blocked" groups are still shown but a basic (customisable) message is shown on the group page "You are unable to join this group because it's meant for a Manager only.
  • Everything stays the same but as soon as a user presses the "Join Group" button the xProfile check is done and then the message is displayed (might be the easiest solution)

I'm not sure if this idea is doable or falls within the scope of the plugin, but I think it would be a neat feature and would also be extra awesome when it works together with the new upcoming "User Types" functionality!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions