Added the ability to destroy wiki pages (content and its history are deleted from the database).
This permission has to be explicitly given (Roles & Permissions -> Wiki pages/Delete). git-svn-id: http://redmine.rubyforge.org/svn/trunk@540 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
4a524ff911
commit
6446c312be
16 files changed
+43
-2
No files matched your search
@@ -0,0 +1,9 @@
|
||||
class AddWikiDestroyPagePermission < ActiveRecord::Migration
|
||||
def self.up
|
||||
Permission.create :controller => 'wiki', :action => 'destroy', :description => 'button_delete', :sort => 1740, :is_public => false, :mail_option => 0, :mail_enabled => 0
|
||||
end
|
||||
|
||||
def self.down
|
||||
Permission.find_by_controller_and_action('wiki', 'destroy').destroy
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user