[Cartoweb-users] control edit layers by role
Oliver Christen
oliver.christen at camptocamp.com
Mon Feb 4 04:36:23 EST 2008
Hi
you need to extend the edit plugin to handle the role when displaying the
list of editable layers
the list of editable layer is generated in ClientEdit.php function
renderForm()
see the loop foreach($layersInit->getLayers() as $layer) { ... }
to know if a user has a role:
$hasRole = SecurityManager::getInstance()->hasRole($roles); where $roles is
an existing role defined in auth.ini
regards
Oliver
----- Original Message -----
From: "André Ramos" <andre.ramos at ccdr-a.gov.pt>
To: <Cartoweb-users at lists.maptools.org>
Sent: Monday, January 28, 2008 11:39 AM
Subject: [Cartoweb-users] control edit layers by role
> Hello all Cartoweb users
>
> i am considering edit-plugin for some simple editing inside cartoweb
>
> however i would like to control the process
>
> something like
>
> role 1 allowed to edit layer 1 and 2
> role 2 allowed to edit layer 2
> role 3 allowed to edit layer 1 and 3
>
> keep in mind that this is only for editing, for viewing i think the
> mecanism i could read in the manual would be suficient
>
>
> many thanks
> André Ramos (Portugal)
>
>
> _______________________________________________
> Cartoweb-users mailing list
> Cartoweb-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/cartoweb-users
>
More information about the Cartoweb-users
mailing list