Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defining parent group of new user group in manage_schema #3290

Open
cdfa opened this issue Feb 7, 2023 · 0 comments
Open

Defining parent group of new user group in manage_schema #3290

cdfa opened this issue Feb 7, 2023 · 0 comments

Comments

@cdfa
Copy link
Contributor

cdfa commented Feb 7, 2023

Zotonic version

(0.74.0)

OS version

N/A

Description

  • Motivation
    For KennisCloud, we want to add user groups in the correct place in the user group hierarchy upon schema installation.
    This is probably possible to do through manipulation of the user hierarchy using existing zotonic functions, but being able to define a parent user group in the datamodel-record would be helpful for discoverability and keeping a clear overview.

  • Proposal
    For instance, allowing a field in the resource definition as follows:

{acl_user_group_project_manager, acl_user_group, [
    {title, {trans, [
        {nl, <<"Project manager">>},
        {en, <<"Project manager">>}
    ]}},
    {language, [nl,en]},
    {parent_user_group, acl_user_group_members}
]}

This is just a first idea, but it would be very clear like this.

Current behavior

None

Expected behavior

See above

Config

N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant