Feature #1543

Setting permissions for viewing the Activity page.

Added by José Campos almost 4 years ago. Updated over 3 years ago.

Status:New Start date:2008-06-28
Priority:Normal Due date:
Assignee:Jean-Philippe Lang % Done:

0%

Category:Permissions and roles
Target version:-
Resolution:

Description

There should be a permission option for granting or denying access to the Activity page. Note: for user that don't have access to logtime, it's even more relevant, since they can infer the time spent in each issue and have a notion of the work being done by the developers.


Related issues

duplicated by Feature #849: Roles and Permissions Closed 2008-03-14

History

#1 Updated by Mark Gallop almost 4 years ago

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.

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.

 # 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

You would then need to set "View activity" in Administration -> "Roles and permissions" if you wanted a user to see the activity.

Mark

#2 Updated by José Campos almost 4 years ago

Thanks, Mark, I'll try it.

#3 Updated by Ricardo V.C. almost 4 years ago

Hello:

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. :(

regards

#4 Updated by Mark Gallop almost 4 years ago

Richardo,

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.

If that doesn't work, let me know and I will have another look at what I changed.

Cheers,
Mark

#5 Updated by Ricardo V.C. almost 4 years ago

Hello Mark:

No, the user I'm trying with has the flag "administrator" off. :(
I can move the rhtml page out but it's very ugly solution.
thx for your help

Regards

#6 Updated by Lane Roathe over 3 years ago

Another ping for this feature in the core.

Mark, I did your quick update and I was able to disable Activity views for roles. Thanks for sharing that!

PS: Seems related to Issue #849.

#7 Updated by Lane Roathe over 3 years ago

Ok, so now the question I have is: how do I prevent access to the

  1. Overview
  2. Roadmap
  3. Issues

tabs?

Also available in: Atom PDF