AnsweredAssumed Answered

How to change the default My Activites dashlet to user specific?

Question asked by eswbitto on Apr 5, 2017
Latest reply on Jun 27, 2017 by calvo

So we had ran into an issue about privacy, in particular, privacy about files that are accessed on a Site. So in order to comply with the request I've changed the filtering for the My Activities Dashlet to only show the current user that is logged in rather than a user being able to see other members of the same Site and what they do.


The following two files were created here: /opt/install/tomcat/shared/classes/alfresco/web-extension/site-webscripts/org/alfresco/components/dashlets


my-activites.get.config.xml <config> <filter-range> <filter type="today" label="today" /> - 

site-activities.get.config.xml <config> <filter-range> <filter type="today" label="today" /> - 


The filtering works when you look at the default user dashboard or site dashboard the only option is the current user activites. The PROBLEM though is that it isn't showing this by default. It's showing "Everyone" by default and I want to be able to change that.

I looked at the following file: /opt/install/tomcat/webapps/share/components/dashlets/activites.js I've pasted it here for convenience: activities.js /** * Copyright (C) 2005-2014 Alfresco Software Limited. * * This file is - 


I think that I need to change some values around line 158, but I'm not sure. I'm not that savvy in js yet and I have played around with changing the value from "all" to "mine". I'm sure that I need to create this same file in the tomcat/shared place so that it will overwrite this default file, but I'd like to get some insight to see if I'm going in the right direction or if I'm looking at the wrong file all together.