Hi,

On a new instance of fusionforge 6.0 (that I've set up for testing purpose, from the latest 6.0 branch), with automatic approval of projects enabled, users can register projects, but they are not automatically added to the Admin role of the project. Instead, the project has 0 members and has a pending request for the member to join the project.

Obviously there's some kind of misconfiguration or tricky bug revealed by my particular setup but so far I've been unable to track it. I think that the issue occurs when the register page calls Group.approve, which iterates the roles of the group with the following code (in Group.class.php, methode approve):

        $roles = $this->getRoles();
        foreach ($roles as $r) {
                if ($r->getHomeProject() == NULL) {
                        continue;
                }
                if ($r->getSetting ('project_admin', $this->getID())) {
                        $r->addUser(user_get_object ($idadmin_group));
                }
        }

As I understand it, this code is supposed to add the user who registered the group to all roles of the group which have the 'project_admin' permission. But the getSetting ('project_admin', $this->getID()) function returns false for the newly created Admin role of the group. I'm not sure to fully understand the RBAC code in getSetting, to understand *WHY* my newly created Admin role doesn't have 'project_admin' permission, so before digging deeper in the RBAC code, I would appreciate any insight about this from someone more familiar with the ff code ?


--
Matthieu Imbert <matthieu.imb...@inria.fr>
http://graal.ens-lyon.fr/~mimbert/
INRIA / LIP ENS-Lyon / INSA CITI research engineer
http://www.inria.fr http://www.ens-lyon.fr/LIP http://www.citi-lab.fr
+33(0)472728149 / +33(0)472437307

Monod campus, room GN1 Nord 3.52
LIP ENS-Lyon, 46 allée d'Italie
69364 Lyon cedex 07, FRANCE

CITI Lab, INSA Lyon, Domaine Scientifique de la Doua
Batiment Claude Chappe, room TLC 238
6 avenue des Arts, 69621 Villeurbanne, FRANCE

_______________________________________________
Fusionforge-general mailing list
Fusionforge-general@lists.fusionforge.org
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-general

Reply via email to