Disable SaveAs for normal users

8 views
Skip to first unread message

Stefan Overkamp

unread,
Feb 19, 2026, 3:35:41 AM (6 days ago) Feb 19
to mapstor...@googlegroups.com

Hi,

is it possible to disable the SaveAs-Plugin for specific roles.

As Admin it is a nice feature to save a map with a different name.
But I don't like normal users to do this.

This has no effect:

      { "name": "SaveAs", "cfg": { "resourceType": "MAP" , "allowedRoles": ["ADMIN"]} },


Thanks

Stefan

-- 
Dipl.Ing. Stefan Overkamp
https://mapstore.geodaten-velbert.de

c.morales

unread,
Feb 19, 2026, 9:43:52 AM (6 days ago) Feb 19
to mapstore-users
 I agree with this improvment !

Catherine Morales
Rennes metropole

Mahmood Adel

unread,
Feb 24, 2026, 7:27:42 AM (20 hours ago) Feb 24
to mapstor...@googlegroups.com
Hi Stefan,

Thank you for your question and for being an active member of the MapStore community.

Regarding your request to disable the SaveAs plugin for specific roles, please try the following configuration:

{ "name": "SaveAs", "cfg": { "resourceType": "MAP", "disablePluginIf": "{state('userrole') != 'ADMIN'}" } }

Please test this in your localConfig.json and let me know if it works as expected.


Virus-free.www.avast.com

--
You received this message because you are subscribed to the Google Groups "mapstore-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapstore-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/mapstore-users/b700c9c5-7fa5-4aa8-aaed-b6ba8e0f7953n%40googlegroups.com.


--

Regards,

Mahmood Adel

==

Professional Support for GeoNode, GeoServer and MapStore from the experts!

Visit http://bit.ly/gs-services for more information.

==

Mahmood Adel

Frontend Software Engineer

 

GeoSolutions Group

phone: +39 0584 962313

fax:      +39 0584 1660272

 

https://www.geosolutionsgroup.com/

http://twitter.com/geosolutions_it

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

Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia.

 

This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.

Mahmood Adel

unread,
Feb 24, 2026, 7:27:42 AM (20 hours ago) Feb 24
to mapstor...@googlegroups.com

Stefan Overkamp

unread,
Feb 24, 2026, 9:58:49 AM (17 hours ago) Feb 24
to mapstor...@googlegroups.com, Mahmood Adel

Many, many thanks,

It works like expexted! Great support, as ever!

Stefan

Reply all
Reply to author
Forward
0 new messages