Removed files module and its permissions

pull/310/head
Sebastian Schuster 11 years ago committed by Christian Ratz
parent f5275549fb
commit 24aa7916aa
  1. 3
      config/locales/de.yml
  2. 3
      config/locales/en.yml
  3. 7
      lib/redmine.rb
  4. 5
      lib/redmine/default_data/loader.rb
  5. 9
      test/fixtures/roles.yml
  6. 1
      test/unit/lib/redmine_test.rb

@ -1101,7 +1101,6 @@ de:
permission_manage_boards: "Foren verwalten"
permission_manage_categories: "Ticket-Kategorien verwalten"
permission_manage_documents: "Dokumente verwalten"
permission_manage_files: "Dateien verwalten"
permission_manage_issue_relations: "Ticket-Beziehungen verwalten"
permission_manage_members: "Mitglieder verwalten"
permission_manage_news: "News verwalten"
@ -1120,7 +1119,6 @@ de:
permission_view_calendar: "Kalender ansehen"
permission_view_changesets: "Changesets ansehen"
permission_view_documents: "Dokumente ansehen"
permission_view_files: "Dateien ansehen"
permission_view_issue_watchers: "Liste der Beobachter ansehen"
permission_view_issues: "Tickets anzeigen"
permission_view_messages: "Forenbeiträge ansehen"
@ -1136,7 +1134,6 @@ de:
project_module_boards: "Foren"
project_module_calendar: "Kalender"
project_module_documents: "Dokumente"
project_module_files: "Dateien"
project_module_issue_tracking: "Ticket-Verfolgung"
project_module_news: "News"
project_module_repository: "Projektarchiv"

@ -1076,7 +1076,6 @@ en:
permission_manage_boards: "Manage forums"
permission_manage_categories: "Manage issue categories"
permission_manage_documents: "Manage documents"
permission_manage_files: "Manage files"
permission_manage_issue_relations: "Manage issue relations"
permission_manage_members: "Manage members"
permission_manage_news: "Manage news"
@ -1095,7 +1094,6 @@ en:
permission_view_calendar: "View calendar"
permission_view_changesets: "View changesets"
permission_view_documents: "View documents"
permission_view_files: "View files"
permission_view_issue_watchers: "View watchers list"
permission_view_issues: "View Issues"
permission_view_messages: "View messages"
@ -1111,7 +1109,6 @@ en:
project_module_boards: "Forums"
project_module_calendar: "Calendar"
project_module_documents: "Documents"
project_module_files: "Files"
project_module_issue_tracking: "Issue tracking"
project_module_news: "News"
project_module_repository: "Repository"

@ -130,11 +130,6 @@ Redmine::AccessControl.map do |map|
map.permission :view_documents, :documents => [:index, :show, :download]
end
map.project_module :files do |map|
map.permission :manage_files, {:files => [:new, :create]}, :require => :loggedin
map.permission :view_files, :files => :index, :versions => :download
end
map.project_module :wiki do |map|
map.permission :manage_wiki, {:wikis => [:edit, :destroy]}, :require => :member
map.permission :manage_wiki_menu, {:wiki_menu_items => [:edit, :update]}, :require => :member
@ -296,7 +291,6 @@ Redmine::MenuManager.map :project_menu do |menu|
menu.push :documents, { :controller => '/documents', :action => 'index' }, :param => :project_id, :caption => :label_document_plural
menu.push :boards, { :controller => '/boards', :action => 'index', :id => nil }, :param => :project_id,
:if => Proc.new { |p| p.boards.any? }, :caption => :label_board_plural
menu.push :files, { :controller => '/files', :action => 'index' }, :caption => :label_file_plural, :param => :project_id
menu.push :repository, { :controller => '/repositories', :action => 'show' },
:if => Proc.new { |p| p.repository && !p.repository.new_record? }
menu.push :settings, { :controller => '/projects', :action => 'settings' }, :caption => :label_project_settings, :last => true
@ -348,7 +342,6 @@ Redmine::Activity.map do |activity|
activity.register :changesets
activity.register :news
activity.register :documents, :class_name => %w(Document Attachment)
activity.register :files, :class_name => 'Attachment'
activity.register :wiki_edits, :class_name => 'WikiContent', :default => false
activity.register :messages, :default => false
activity.register :time_entries, :default => false

@ -62,8 +62,6 @@ module Redmine
:delete_wiki_pages,
:add_messages,
:edit_own_messages,
:view_files,
:manage_files,
:browse_repository,
:view_changesets,
:commit_access]
@ -83,7 +81,6 @@ module Redmine
:view_wiki_edits,
:add_messages,
:edit_own_messages,
:view_files,
:browse_repository,
:view_changesets]
@ -99,7 +96,6 @@ module Redmine
:view_wiki_pages,
:view_wiki_edits,
:add_messages,
:view_files,
:browse_repository,
:view_changesets]
@ -110,7 +106,6 @@ module Redmine
:view_documents,
:view_wiki_pages,
:view_wiki_edits,
:view_files,
:browse_repository,
:view_changesets]

@ -45,8 +45,6 @@ roles_001:
- :edit_messages
- :delete_messages
- :manage_boards
- :view_files
- :manage_files
- :browse_repository
- :manage_repository
- :view_changesets
@ -92,8 +90,6 @@ roles_002:
- :edit_own_messages
- :delete_own_messages
- :manage_boards
- :view_files
- :manage_files
- :browse_repository
- :view_changesets
- :list_attachments
@ -130,8 +126,6 @@ roles_003:
- :delete_wiki_pages
- :add_messages
- :manage_boards
- :view_files
- :manage_files
- :browse_repository
- :view_changesets
- :list_attachments
@ -160,8 +154,6 @@ roles_004:
- :view_wiki_edits
- :edit_wiki_pages
- :add_messages
- :view_files
- :manage_files
- :browse_repository
- :view_changesets
- :list_attachments
@ -180,7 +172,6 @@ roles_005:
- :view_documents
- :view_wiki_pages
- :view_wiki_edits
- :view_files
- :browse_repository
- :view_changesets
- :list_attachments

@ -64,7 +64,6 @@ class RedmineTest < ActiveSupport::TestCase
assert_menu_contains_item_named :project_menu, :news
assert_menu_contains_item_named :project_menu, :documents
assert_menu_contains_item_named :project_menu, :boards
assert_menu_contains_item_named :project_menu, :files
assert_menu_contains_item_named :project_menu, :repository
assert_menu_contains_item_named :project_menu, :settings
end

Loading…
Cancel
Save