<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16640" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>Hi</FONT></DIV>
<DIV><FONT size=2>sadely not, but implementing a role check in the edit plugin
to filter the editable layer list should be fairly easy.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>you would need to touchup the function renderForm where the
vaviable $layers is generated,
before </FONT></DIV>
<DIV><FONT size=2>$template->assign(array('edit_layers' =>
$layers,<BR> 'edit_layer_selected' =>
$this->editState->layer));</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>to check if the current user has a specific
role:</FONT></DIV>
<DIV><FONT size=2>$hasTestRole=
SecurityManager::getInstance()->hasRole('hasTestRole');</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>regards</FONT></DIV>
<DIV><FONT size=2>Oliver</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=casanovas@k2sistemas.com.br
href="mailto:casanovas@k2sistemas.com.br">Albert Casanovas</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=cartoweb-users@lists.maptools.org
href="mailto:cartoweb-users@lists.maptools.org">cartoweb-users@lists.maptools.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, April 29, 2008 8:38
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Cartoweb-users] Edit pluguin:
Map editable layers for user/roles</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>In the Cartoweb 3.4.0 edit pluguin there are
the variables:</FONT></DIV>
<DIV><FONT face="Times New Roman"><FONT face="Times New Roman">
<P align=left>• general.allowedRoles: comma separated list of the roles that
are allowed to use the edit plugin</P>
<P align=left>• editLayers: comma separated list of layers that are
editable</P></FONT></FONT><FONT face="Times New Roman"></DIV></FONT>
<DIV><FONT face=Arial size=2>So there is no way to map the edition of concrete
layers for specific roles or users.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>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?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thank you very much,</FONT></DIV>
<DIV><FONT face=Arial size=2>Albert</FONT></DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>Cartoweb-users
mailing
list<BR>Cartoweb-users@lists.maptools.org<BR>http://lists.maptools.org/mailman/listinfo/cartoweb-users<BR></BLOCKQUOTE></BODY></HTML>