Project

General

Profile

RE: Hiding overview and activity ยป redmine.db.patch

Experimental patch - Jan Alboszta, 2009-03-30 11:52

View differences:

redmine.rb 2009-03-30 11:39:02.000000000 +0200
18 18

  
19 19
# Permissions
20 20
Redmine::AccessControl.map do |map|
21
  map.permission :view_project, {:projects => [:show, :activity]}, :public => true
21
  map.permission :view_project, {:projects => :show}, :public => true
22
  map.permission :view_project, {:projects => :activity}, :require =>  :loggedin
22 23
  map.permission :search_project, {:search => :index}, :public => true
23 24
  map.permission :edit_project, {:projects => [:settings, :edit]}, :require => :member
24 25
  map.permission :select_project_modules, {:projects => :modules}, :require => :member
......
33 34
                                  :issues => [:index, :changes, :show, :context_menu],
34 35
                                  :versions => [:show, :status_by],
35 36
                                  :queries => :index,
36
                                  :reports => :issue_report}, :public => true                    
37
                                  :reports => :issue_report}, :require => :loggedin
37 38
    map.permission :add_issues, {:issues => :new}
38 39
    map.permission :edit_issues, {:issues => [:edit, :reply, :bulk_edit]}
39 40
    map.permission :manage_issue_relations, {:issue_relations => [:new, :destroy]}
......
62 63
  
63 64
  map.project_module :news do |map|
64 65
    map.permission :manage_news, {:news => [:new, :edit, :destroy, :destroy_comment]}, :require => :member
65
    map.permission :view_news, {:news => [:index, :show]}, :public => true
66
    map.permission :view_news, {:news => [:index, :show]}, :require => :loggedin
66 67
    map.permission :comment_news, {:news => :add_comment}
67 68
  end
68 69

  
    (1-1/1)