Projet

General

Profil

Module Group Permissons

Ajouté par Tom Kraf il y a presque 9 ans

Hi,

Hope you could help us.
Is it possible to activate the Becpg Module only for Group of users?
After the Installation the module is for all users visible.

Could we handle this over the /share/service/modules/deploy site? My Experiments didn´t work...
We build your Core and Project Amps for Alfresco 5.0.d. But In the C Version we had the same Results.
Best Wishes

T.K


Réponses (2)

RE: Module Group Permissons - Ajouté par Matthieu Laborie il y a presque 9 ans

Hi,

What to you want to hide on beCPG ? Designer / Project / PLM , Menu?

You cannot desactivate alfresco modules based on roles. Some entry on beCPG menu are only for administrators.
You also can set permissions on System folder or other beCPG folder.

Providing your own menu extension you can also write something like that it will hide beCPG menu for non admin :

<extension>
    <modules>
        <module>
            <id>your-custom-extension</id>
            <auto-deploy>true</auto-deploy>
            <customizations>
                <customization>
                  <targetPackageRoot>org.alfresco.share.header</targetPackageRoot>
                  <sourcePackageRoot>org.alfresco.components.my-header</sourcePackageRoot>
                </customization>
...

<import resource="classpath:/alfresco/site-webscripts/org/alfresco/becpg/menu/imports/share-header.lib.js">
if (!(user.isAdmin || isSystemMgr(user)))
      {

 widgetUtils.deleteObjectFromArray(model.jsonModel, "id", "HEADER_BECPG");

}

Regards

RE: Module Group Permissons - Ajouté par Tom Kraf il y a presque 9 ans

Hi,

Thank you for your help. Your Example works fine. ?

We would to hide the Options for the beCPG Projekt tools.

For Example: Users could create in the Menu “my Files” a new Project. This Option should be only for a group of user.

After the Installation there are some new Groups: Project manager, Project creator, Project roles, beCPG External Users and beCPG SystemManager.

We don´t understand how the Groups are operating. Do you have a documentation how to handle these Groups?

So, every new User could use your beCPG Module. Is this the default configuration of your beCPG Modul? If took a user in the beCPG External Users Group the becpg Header don’t Display?.

Is there a way to build a module where I could define something like that with a new group?:

if (!(user.isAdmin || isnew-group(user))) {
widgetUtils.deleteObjectFromArray(model.jsonModel, "id", "HEADER_BECPG");
…disable create Content from my Files
…disable Dashlet Projekt from home screen
}

Thanks for your time and for your great work.

Best Wishes
T.K

    (1-2/2)