[Cartoweb-users] Edit pluguin: Map editable layers for user/roles

Oliver Christen oliver.christen at camptocamp.com
Wed Apr 30 05:16:41 EDT 2008


Hi
sadely not, but implementing a role check in the edit plugin to filter the editable layer list should be fairly easy.

you would need to touchup the function renderForm where the vaviable $layers is generated, before         
$template->assign(array('edit_layers' => $layers,
 'edit_layer_selected' => $this->editState->layer));

to check if the current user has a specific role:
$hasTestRole= SecurityManager::getInstance()->hasRole('hasTestRole');

regards
Oliver
  ----- Original Message ----- 
  From: Albert Casanovas 
  To: cartoweb-users at lists.maptools.org 
  Sent: Tuesday, April 29, 2008 8:38 PM
  Subject: [Cartoweb-users] Edit pluguin: Map editable layers for user/roles


  Hi,

  In the Cartoweb 3.4.0 edit pluguin there are the variables:
  . general.allowedRoles: comma separated list of the roles that are allowed to use the edit plugin

  . editLayers: comma separated list of layers that are editable

  So there is no way to map the edition of concrete layers for specific roles or users.

  Is it there any further implementation of the edit pluguin in order to allow to specify which rols are allowed to use which layers? n case there isn´t, which are the updates we should do of the pluguin in order to enhace it?


  Thank you very much,
  Albert


------------------------------------------------------------------------------


  _______________________________________________
  Cartoweb-users mailing list
  Cartoweb-users at lists.maptools.org
  http://lists.maptools.org/mailman/listinfo/cartoweb-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20080430/f9e135fe/attachment.html


More information about the Cartoweb-users mailing list