<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>Hi Astrid,</div>
<div> </div>
<div>unfortunately I have non budget yet :-/</div>
<div>I see that there is an extra-Filter in FeatureType.php, with that - to start it by my own - I could select only the pois that belong to the registered user.</div>
<div>That would be fine for the beginning......</div>
<div>But : How can I get the logged_in_username?</div>
<div>Is there maybe a SESSION_VARIABLE?</div>
<div> </div>
<div> </div>
<div>Maybe one could change the Requests not in FeatureType.php but in the mapbender.element.digitizer.js</div>
<div> </div>
<div> query: function(uri, request) {<br/>
var widget = this;<br/>
//request.schema = this.activeSchemaName;<br/>
return $.ajax({<br/>
url: widget.elementUrl + uri,<br/>
type: 'POST',<br/>
contentType: "application/json; charset=utf-8",<br/>
dataType: "json",<br/>
data: JSON.stringify(request)</div>
<div> </div>
<div>...but also for that one needy definetely the USERNAMe of the logged_in_user.</div>
<div>Might there be a simple solution to fetch it?</div>
<div>I tried already with a lot of variables, but no success....</div>
<div> </div>
<div>Thank you a lot, H.S.</div>
<div>
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b> Dienstag, 15. März 2016 um 18:30 Uhr<br/>
<b>Von:</b> "Astrid Emde" <astrid.emde@wheregroup.com><br/>
<b>An:</b> "Mapbender User List" <mapbender_users@lists.osgeo.org><br/>
<b>Cc:</b> haukesigismund@web.de<br/>
<b>Betreff:</b> Re: [Mapbender-users] Mapbender3: Change digitizing</div>
<div name="quoted-content">Hello Siggi,<br/>
<br/>
Am 2016-03-15 10:59, schrieb haukesigismund@web.de:<br/>
> Dear users,<br/>
> I successfully installed mapbender3 and also the digitize tool.<br/>
> Good work, I like it very much :-)<br/>
<br/>
Thanks for the compliment. I like Mpabender3 too, especially the<br/>
digitizer ;)<br/>
<br/>
> I would like to do the following:<br/>
> * A registered user can only see HIS OWN digitized points or<br/>
> polygons. For that after creating one point his login-name must be<br/>
> written in a column in the databasetable,<br/>
> can anybody give me a hint where I can start that (Sofar I`m quite<br/>
> unsure whre I can begin in the code)?<br/>
> It might be somewhere in<br/>
> /mapbender3/vendor/mapbender/digitizer/Mapbender/DigitizerBundle/Resources/public/mapbender.element.digitizer.js<br/>
> ?<br/>
> But where can I have influence to the database-queries (Insert,<br/>
> Update, Delete, Select ?)<br/>
><br/>
> * Registered users can delete ONLY their OWN digitized points.<br/>
> For the moment I would be glad to get the logged name. I thought<br/>
> somethink like "alert (app.user.username);" could give out the logged<br/>
> name, but it does not?<br/>
<br/>
<br/>
The behaviour you describe was discussed in the developer team too.<br/>
But it is not part of Mapbender3 yet. Digitizer should filter the<br/>
objects that are displayed and write the mapbender3 user to a column in<br/>
the data table.<br/>
<br/>
If you are interested in the implementation and you have a budget you<br/>
can contact me so we can implement this behaviour.<br/>
<br/>
Astrid<br/>
<br/>
<br/>
> Thank you very much, Siggi<br/>
> _______________________________________________<br/>
> Mapbender_users mailing list<br/>
> Mapbender_users@lists.osgeo.org<br/>
> <a href="http://lists.osgeo.org/mailman/listinfo/mapbender_users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapbender_users</a><br/>
<br/>
--<br/>
Mit freundlichen Grüßen<br/>
<br/>
Astrid Emde<br/>
GIS-Consultant<br/>
<br/>
-----------------------------------<br/>
Aufwind durch Wissen!<br/>
Qualifizierte OpenSource-Schulungen<br/>
bei der <a href="http://www.foss-academy.eu" target="_blank">www.foss-academy.eu</a><br/>
-----------------------------------<br/>
<br/>
Astrid Emde<br/>
WhereGroup GmbH & Co.KG<br/>
Eifelstraße 7<br/>
53119 Bonn<br/>
Germany<br/>
<br/>
Fon: +49(0)228 90 90 38 - 19<br/>
Fax: +49(0)228 90 90 38 - 11<br/>
<br/>
astrid.emde@wheregroup.com<br/>
<a href="http://www.wheregroup.com" target="_blank">www.wheregroup.com</a><br/>
<br/>
Folgen Sie der WhereGroup auf twitter:<br/>
<a href="http://twitter.com/WhereGroup_com" target="_blank">http://twitter.com/WhereGroup_com</a><br/>
<br/>
Amtsgericht Bonn, HRA 6788<br/>
-------------------------------<br/>
Komplementärin:<br/>
WhereGroup Verwaltungs GmbH<br/>
vertreten durch:<br/>
Olaf Knopp, Peter Stamm<br/>
-------------------------------<br/>
pgp-public key:<br/>
<a href="http://pgp.mit.edu:11371/pks/lookup?search=0x06DA52D72D515284" target="_blank">http://pgp.mit.edu:11371/pks/lookup?search=0x06DA52D72D515284</a><br/>
Signierte und/oder verschlüsselte Nachrichten sind sehr willkommen<br/>
Signed and/or encrypted mail is highly appreciated</div>
</div>
</div>
</div></div></body></html>