https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292008-07-02T09:56:58ZRedmineRedmine - Feature #1543: Setting permissions for viewing the Activity page.https://www.redmine.org/issues/1543?journal_id=36602008-07-02T09:56:58ZMark Gallop
<ul></ul><p>I also think this is a good idea. I ended up creating a "restricted view" custom field for users so that I could hide many of the things that Redmine shows by default.</p>
<p>José, if you haven't already done it, you could edit lib/redmine.rb and make the following changes to restrict access to the Activity view.</p>
<pre>
# Permissions
Redmine::AccessControl.map do |map|
- map.permission :view_project, {:projects => [:show, :activity]}, :public => true
+ map.permission :view_project, {:projects => [:show]}, :public => true
map.permission :search_project, {:search => :index}, :public => true
map.permission :edit_project, {:projects => [:settings, :edit]}, :require => :member
+ map.permission :view_activity, {:projects => [:activity]}
map.permission :select_project_modules, {:projects => :modules}, :require => :member
</pre>
<p>You would then need to set "View activity" in Administration -> "Roles and permissions" if you wanted a user to see the activity.</p>
<p>Mark</p> Redmine - Feature #1543: Setting permissions for viewing the Activity page.https://www.redmine.org/issues/1543?journal_id=36682008-07-02T10:46:40ZJosé Campos
<ul></ul><p>Thanks, Mark, I'll try it.</p> Redmine - Feature #1543: Setting permissions for viewing the Activity page.https://www.redmine.org/issues/1543?journal_id=36702008-07-02T11:44:12ZRicardo V.C.
<ul></ul><p>Hello:</p>
<p>I am also interestedd about this feature, Mark I've tried your solution,I get the checkbox in the role view but no effect after restarting redmine. :(</p>
<p>regards</p> Redmine - Feature #1543: Setting permissions for viewing the Activity page.https://www.redmine.org/issues/1543?journal_id=36912008-07-03T06:59:54ZMark Gallop
<ul></ul><p>Richardo,</p>
<p>Are you trying out the permissions as a user with "administrator" set? If so, try testing it with a non-admin user who has "View activity" unchecked.</p>
<p>If that doesn't work, let me know and I will have another look at what I changed.</p>
<p>Cheers,<br />Mark</p> Redmine - Feature #1543: Setting permissions for viewing the Activity page.https://www.redmine.org/issues/1543?journal_id=36922008-07-03T07:20:12ZRicardo V.C.
<ul></ul><p>Hello Mark:</p>
<p>No, the user I'm trying with has the flag "administrator" off. :(<br />I can move the rhtml page out but it's very ugly solution.<br />thx for your help</p>
<p>Regards</p> Redmine - Feature #1543: Setting permissions for viewing the Activity page.https://www.redmine.org/issues/1543?journal_id=70192009-01-31T00:13:54ZLane Roathe
<ul></ul><p>Another ping for this feature in the core.</p>
<p>Mark, I did your quick update and I was able to disable Activity views for roles. Thanks for sharing that!</p>
<p>PS: Seems related to Issue <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Roles and Permissions (Closed)" href="https://www.redmine.org/issues/849">#849</a>.</p> Redmine - Feature #1543: Setting permissions for viewing the Activity page.https://www.redmine.org/issues/1543?journal_id=70202009-01-31T05:01:37ZLane Roathe
<ul></ul><p>Ok, so now the question I have is: how do I prevent access to the</p>
<ol>
<li>Overview</li>
<li>Roadmap</li>
<li>Issues</li>
</ol>
<p>tabs?</p> Redmine - Feature #1543: Setting permissions for viewing the Activity page.https://www.redmine.org/issues/1543?journal_id=427742012-11-13T09:22:28ZWim DePreter
<ul></ul><p>What's the status for this issue?<br />I have a simular request for hiding activity-tab, but I think it should be a user setting (set by administrator), because activity log can also be consulted per user.<br />We're using Redmine internally for the moment. Now we want to use it also with our customers, but we don't want that our customers consult the activity page, so disabling the activity page only for them (on projects, users, ...) would be really nice.</p> Redmine - Feature #1543: Setting permissions for viewing the Activity page.https://www.redmine.org/issues/1543?journal_id=451422013-01-30T06:16:42ZMichael Esemplare
<ul><li><strong>File</strong> <a href="/attachments/8935">locales_en.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/8935/locales_en.patch">locales_en.patch</a> added</li><li><strong>File</strong> <a href="/attachments/8936">redmine.rb.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/8936/redmine.rb.patch">redmine.rb.patch</a> added</li><li><strong>File</strong> <a href="/attachments/8937">default_data_loader.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/8937/default_data_loader.patch">default_data_loader.patch</a> added</li></ul><p>I have attached a patch for redmine 2.2.</p>
<p>Note: Looking at redmine 2.1 the patch should be fine. However looking at <strong>redmine 2.0 and 1.x</strong>, you might need to remove the <code>:read => true</code> attribute.</p>
<p>I also took a stab at patching the default_data/loader.rb. Didn't test the loader because I don't have a blank install at hand.</p>
<p>Wim De Preter,<br />This is a role based patch. You will have to update any existing roles to include the "View Activity" permission.</p>
<p>I do not know how your Redmine is set up, but creating groups for your customers eases the permissions process. This way you create a group for your customers, add the customers to the group or groups, and then assign the group to a project with a role. Then anyone in that group has that role and any permission changes will be inherited.</p> Redmine - Feature #1543: Setting permissions for viewing the Activity page.https://www.redmine.org/issues/1543?journal_id=499092013-06-06T18:20:09ZMathias K.
<ul></ul><p>This patch will not disable the "Overall activity" link on the project page. Any hints?</p> Redmine - Feature #1543: Setting permissions for viewing the Activity page.https://www.redmine.org/issues/1543?journal_id=499122013-06-06T23:22:36ZMichael Esemplare
<ul></ul><p>Mathias,</p>
<p>That is true, there were other places the activity is accessible that I did not know at the time. One for example is the user's page, it displays information about the user including activity. I have patched internally and will try to come up with a decent patch here.</p>
Another thing outside of this issue that could have access control:
<ul>
<li>Issue summaries - <a class="external" href="http://your.redmine.site/projects/project_name/issues/report">http://your.redmine.site/projects/project_name/issues/report</a></li>
</ul>
<p>This one site I'm building the customer doesn't want the users to have any access to these.</p> Redmine - Feature #1543: Setting permissions for viewing the Activity page.https://www.redmine.org/issues/1543?journal_id=543932014-01-20T08:29:04ZFlorian Kaiser
<ul></ul><p>+1</p> Redmine - Feature #1543: Setting permissions for viewing the Activity page.https://www.redmine.org/issues/1543?journal_id=546582014-02-05T16:05:44ZGurvan Le Dromaguet
<ul></ul><p>+1 Implementing patch on my site.</p> Redmine - Feature #1543: Setting permissions for viewing the Activity page.https://www.redmine.org/issues/1543?journal_id=553532014-03-15T17:13:43ZY Z
<ul></ul><p>+1</p> Redmine - Feature #1543: Setting permissions for viewing the Activity page.https://www.redmine.org/issues/1543?journal_id=554202014-03-19T06:31:08ZMichael Esemplare
<ul><li><strong>File</strong> <a href="/attachments/11321">view_activity_permission_trunk.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/11321/view_activity_permission_trunk.patch">view_activity_permission_trunk.patch</a> added</li></ul>I've added an updated patch that:
<ul>
<li>Fixes the Overall activity link on the project page</li>
<li>Does not show user activity on user's page unless they can view activity (i.e. <a class="external" href="http://www.redmine.org/users/38840">http://www.redmine.org/users/38840</a>)</li>
</ul>
<p>The patch is against trunk <a class="changeset" title="Merged r12981 from trunk to 2.5-stable (#16368) Polish translation updated by Jan Inowolski." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/12982">r12982</a> (2.5-stable), so you might not be able to run <code>`patch -p0 -i view_activity_permission_trunk.patch`</code> on your redmine install.</p>
<p>All modifications should work with 2.1+, tested with 2.2, 2.4 and 2.5 stable.</p>
<p>As noted previously, if running redmine <strong>2.0 and 1.x</strong>, you might need to remove the <code>:read => true</code> attribute in lib/redmine.rb.</p> Redmine - Feature #1543: Setting permissions for viewing the Activity page.https://www.redmine.org/issues/1543?journal_id=609352015-01-18T11:58:29ZMark Stroeve
<ul></ul><p>Michael Esemplare wrote:</p>
<blockquote>
I've added an updated patch that:
<ul>
<li>Fixes the Overall activity link on the project page</li>
<li>Does not show user activity on user's page unless they can view activity (i.e. <a class="external" href="http://www.redmine.org/users/38840">http://www.redmine.org/users/38840</a>)</li>
</ul>
<p>The patch is against trunk <a class="changeset" title="Merged r12981 from trunk to 2.5-stable (#16368) Polish translation updated by Jan Inowolski." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/12982">r12982</a> (2.5-stable), so you might not be able to run <code>`patch -p0 -i view_activity_permission_trunk.patch`</code> on your redmine install.</p>
<p>All modifications should work with 2.1+, tested with 2.2, 2.4 and 2.5 stable.</p>
<p>As noted previously, if running redmine <strong>2.0 and 1.x</strong>, you might need to remove the <code>:read => true</code> attribute in lib/redmine.rb.</p>
</blockquote>
<p>We use this patch its working great. The only problem is that we have to apply the patch every time gets updated. And the patch doesnt work out of the box with 2.6.1</p>
<p>How would we get this patch (or updated version) to be part of te redmine core? <br />Its seems to be a nice enhancement.</p> Redmine - Feature #1543: Setting permissions for viewing the Activity page.https://www.redmine.org/issues/1543?journal_id=609502015-01-18T21:10:40ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Target version</strong> set to <i>Candidate for next major release</i></li></ul><p>The problem with the latest patch is that a user who is allowed to view the activity on a single project will be able to see all projects' activity on the cross project activity page. Is it the expected behaviour? I think he should only see the activity of the projects for which he has the view_activity permission.</p> Redmine - Feature #1543: Setting permissions for viewing the Activity page.https://www.redmine.org/issues/1543?journal_id=616442015-02-20T07:18:08ZOleg Aksenov
<ul></ul><p>+1</p> Redmine - Feature #1543: Setting permissions for viewing the Activity page.https://www.redmine.org/issues/1543?journal_id=744742016-11-15T18:08:11ZGregory Van der Steen
<ul></ul><p>+1</p>
<p>Applied a modified version of the patch (+loader) on redmine 3.3.x and it's working as aspected. I am glad this issue is targeted for the next major release.</p> Redmine - Feature #1543: Setting permissions for viewing the Activity page.https://www.redmine.org/issues/1543?journal_id=816882017-10-21T01:30:57Zeendalljuine eendalljuine
<ul><li><strong>File</strong> <i>130.gif</i> added</li></ul> Redmine - Feature #1543: Setting permissions for viewing the Activity page.https://www.redmine.org/issues/1543?journal_id=816892017-10-21T01:55:52ZMischa The Evil
<ul><li><strong>File</strong> deleted (<del><i>130.gif</i></del>)</li></ul> Redmine - Feature #1543: Setting permissions for viewing the Activity page.https://www.redmine.org/issues/1543?journal_id=849392018-05-09T10:10:23ZAlessandro Zucchi
<ul></ul><p>+1</p> Redmine - Feature #1543: Setting permissions for viewing the Activity page.https://www.redmine.org/issues/1543?journal_id=988882020-08-21T08:22:19ZAleksandar Pavic
<ul></ul><p>+1</p>
<p>This is also related to:</p>
<p><a class="issue tracker-2 status-1 priority-4 priority-default" title="Feature: Add Modules to hide/display Overview, Activity, Roadmap (New)" href="https://www.redmine.org/issues/2585">#2585</a>, <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Removable Overview / Activity menus (Closed)" href="https://www.redmine.org/issues/9930">#9930</a></p> Redmine - Feature #1543: Setting permissions for viewing the Activity page.https://www.redmine.org/issues/1543?journal_id=1044092021-10-22T16:46:27ZPiotr Robert Konopelko
<ul></ul><p>+1</p> Redmine - Feature #1543: Setting permissions for viewing the Activity page.https://www.redmine.org/issues/1543?journal_id=1103412023-06-26T14:40:34ZJérôme Gallot
<ul></ul><p>+1</p>