Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
04063ac12c |
@@ -149,7 +149,7 @@ class IssuesController < ApplicationController
|
|||||||
if request.get? || request.xhr?
|
if request.get? || request.xhr?
|
||||||
@issue.start_date ||= Date.today
|
@issue.start_date ||= Date.today
|
||||||
else
|
else
|
||||||
requested_status = IssueStatus.find_by_id(params[:issue][:status_id]) if params[:issue]
|
requested_status = IssueStatus.find_by_id(params[:issue][:status_id])
|
||||||
# Check that the user is allowed to apply the requested status
|
# Check that the user is allowed to apply the requested status
|
||||||
@issue.status = (@allowed_statuses.include? requested_status) ? requested_status : default_status
|
@issue.status = (@allowed_statuses.include? requested_status) ? requested_status : default_status
|
||||||
call_hook(:controller_issues_new_before_save, { :params => params, :issue => @issue })
|
call_hook(:controller_issues_new_before_save, { :params => params, :issue => @issue })
|
||||||
|
|||||||
@@ -38,7 +38,6 @@ class MembersController < ApplicationController
|
|||||||
format.js {
|
format.js {
|
||||||
render(:update) {|page|
|
render(:update) {|page|
|
||||||
page.replace_html "tab-content-members", :partial => 'projects/settings/members'
|
page.replace_html "tab-content-members", :partial => 'projects/settings/members'
|
||||||
page << 'hideOnLoad()'
|
|
||||||
members.each {|member| page.visual_effect(:highlight, "member-#{member.id}") }
|
members.each {|member| page.visual_effect(:highlight, "member-#{member.id}") }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -52,7 +51,6 @@ class MembersController < ApplicationController
|
|||||||
format.js {
|
format.js {
|
||||||
render(:update) {|page|
|
render(:update) {|page|
|
||||||
page.replace_html "tab-content-members", :partial => 'projects/settings/members'
|
page.replace_html "tab-content-members", :partial => 'projects/settings/members'
|
||||||
page << 'hideOnLoad()'
|
|
||||||
page.visual_effect(:highlight, "member-#{@member.id}")
|
page.visual_effect(:highlight, "member-#{@member.id}")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -66,11 +64,7 @@ class MembersController < ApplicationController
|
|||||||
end
|
end
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html { redirect_to :controller => 'projects', :action => 'settings', :tab => 'members', :id => @project }
|
format.html { redirect_to :controller => 'projects', :action => 'settings', :tab => 'members', :id => @project }
|
||||||
format.js { render(:update) {|page|
|
format.js { render(:update) {|page| page.replace_html "tab-content-members", :partial => 'projects/settings/members'} }
|
||||||
page.replace_html "tab-content-members", :partial => 'projects/settings/members'
|
|
||||||
page << 'hideOnLoad()'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ class ProjectsController < ApplicationController
|
|||||||
before_filter :authorize, :except => [ :index, :list, :add, :copy, :archive, :unarchive, :destroy, :activity ]
|
before_filter :authorize, :except => [ :index, :list, :add, :copy, :archive, :unarchive, :destroy, :activity ]
|
||||||
before_filter :authorize_global, :only => :add
|
before_filter :authorize_global, :only => :add
|
||||||
before_filter :require_admin, :only => [ :copy, :archive, :unarchive, :destroy ]
|
before_filter :require_admin, :only => [ :copy, :archive, :unarchive, :destroy ]
|
||||||
accept_key_auth :activity, :index
|
accept_key_auth :activity
|
||||||
|
|
||||||
after_filter :only => [:add, :edit, :archive, :unarchive, :destroy] do |controller|
|
after_filter :only => [:add, :edit, :archive, :unarchive, :destroy] do |controller|
|
||||||
if controller.request.post?
|
if controller.request.post?
|
||||||
|
|||||||
@@ -52,19 +52,17 @@ module RepositoriesHelper
|
|||||||
else
|
else
|
||||||
change
|
change
|
||||||
end
|
end
|
||||||
end.compact
|
end.compact
|
||||||
|
|
||||||
tree = { }
|
tree = { }
|
||||||
changes.each do |change|
|
changes.each do |change|
|
||||||
p = tree
|
p = tree
|
||||||
dirs = change.path.to_s.split('/').select {|d| !d.blank?}
|
dirs = change.path.to_s.split('/').select {|d| !d.blank?}
|
||||||
path = ''
|
|
||||||
dirs.each do |dir|
|
dirs.each do |dir|
|
||||||
path += '/' + dir
|
|
||||||
p[:s] ||= {}
|
p[:s] ||= {}
|
||||||
p = p[:s]
|
p = p[:s]
|
||||||
p[path] ||= {}
|
p[dir] ||= {}
|
||||||
p = p[path]
|
p = p[dir]
|
||||||
end
|
end
|
||||||
p[:c] = change
|
p[:c] = change
|
||||||
end
|
end
|
||||||
@@ -78,26 +76,21 @@ module RepositoriesHelper
|
|||||||
output = ''
|
output = ''
|
||||||
output << '<ul>'
|
output << '<ul>'
|
||||||
tree.keys.sort.each do |file|
|
tree.keys.sort.each do |file|
|
||||||
|
s = !tree[file][:s].nil?
|
||||||
|
c = tree[file][:c]
|
||||||
|
|
||||||
style = 'change'
|
style = 'change'
|
||||||
text = File.basename(h(file))
|
style << ' folder' if s
|
||||||
if s = tree[file][:s]
|
style << " change-#{c.action}" if c
|
||||||
style << ' folder'
|
|
||||||
path_param = to_path_param(@repository.relative_path(file))
|
text = h(file)
|
||||||
text = link_to(text, :controller => 'repositories',
|
unless c.nil?
|
||||||
:action => 'show',
|
|
||||||
:id => @project,
|
|
||||||
:path => path_param,
|
|
||||||
:rev => @changeset.revision)
|
|
||||||
output << "<li class='#{style}'>#{text}</li>"
|
|
||||||
output << render_changes_tree(s)
|
|
||||||
elsif c = tree[file][:c]
|
|
||||||
style << " change-#{c.action}"
|
|
||||||
path_param = to_path_param(@repository.relative_path(c.path))
|
path_param = to_path_param(@repository.relative_path(c.path))
|
||||||
text = link_to(text, :controller => 'repositories',
|
text = link_to(text, :controller => 'repositories',
|
||||||
:action => 'entry',
|
:action => 'entry',
|
||||||
:id => @project,
|
:id => @project,
|
||||||
:path => path_param,
|
:path => path_param,
|
||||||
:rev => @changeset.revision) unless c.action == 'D'
|
:rev => @changeset.revision) unless s || c.action == 'D'
|
||||||
text << " - #{c.revision}" unless c.revision.blank?
|
text << " - #{c.revision}" unless c.revision.blank?
|
||||||
text << ' (' + link_to('diff', :controller => 'repositories',
|
text << ' (' + link_to('diff', :controller => 'repositories',
|
||||||
:action => 'diff',
|
:action => 'diff',
|
||||||
@@ -105,8 +98,9 @@ module RepositoriesHelper
|
|||||||
:path => path_param,
|
:path => path_param,
|
||||||
:rev => @changeset.revision) + ') ' if c.action == 'M'
|
:rev => @changeset.revision) + ') ' if c.action == 'M'
|
||||||
text << ' ' + content_tag('span', c.from_path, :class => 'copied-from') unless c.from_path.blank?
|
text << ' ' + content_tag('span', c.from_path, :class => 'copied-from') unless c.from_path.blank?
|
||||||
output << "<li class='#{style}'>#{text}</li>"
|
|
||||||
end
|
end
|
||||||
|
output << "<li class='#{style}'>#{text}</li>"
|
||||||
|
output << render_changes_tree(tree[file][:s]) if s
|
||||||
end
|
end
|
||||||
output << '</ul>'
|
output << '</ul>'
|
||||||
output
|
output
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ class MailHandler < ActionMailer::Base
|
|||||||
logger.info "MailHandler: ignoring email from Redmine emission address [#{sender_email}]" if logger && logger.info
|
logger.info "MailHandler: ignoring email from Redmine emission address [#{sender_email}]" if logger && logger.info
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
@user = User.find_by_mail(sender_email) if sender_email.present?
|
@user = User.find_by_mail(sender_email)
|
||||||
if @user && !@user.active?
|
if @user && !@user.active?
|
||||||
logger.info "MailHandler: ignoring email from non-active user [#{@user.login}]" if logger && logger.info
|
logger.info "MailHandler: ignoring email from non-active user [#{@user.login}]" if logger && logger.info
|
||||||
return false
|
return false
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
<% form_tag({ :controller => 'queries', :action => 'new' }, :id => 'query_form') do %>
|
<% form_tag({ :controller => 'queries', :action => 'new' }, :id => 'query_form') do %>
|
||||||
<%= hidden_field_tag('project_id', @project.to_param) if @project %>
|
<%= hidden_field_tag('project_id', @project.to_param) if @project %>
|
||||||
<div id="query_form_content" class="hide-when-print">
|
<div id="query_form_content">
|
||||||
<fieldset id="filters" class="collapsible <%= @query.new_record? ? "" : "collapsed" %>">
|
<fieldset id="filters" class="collapsible <%= @query.new_record? ? "" : "collapsed" %>">
|
||||||
<legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend>
|
<legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend>
|
||||||
<div style="<%= @query.new_record? ? "" : "display: none;" %>">
|
<div style="<%= @query.new_record? ? "" : "display: none;" %>">
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
<p class="buttons hide-when-print">
|
<p class="buttons">
|
||||||
|
|
||||||
<%= link_to_remote l(:button_apply),
|
<%= link_to_remote l(:button_apply),
|
||||||
{ :url => { :set_filter => 1 },
|
{ :url => { :set_filter => 1 },
|
||||||
|
|||||||
@@ -17,10 +17,10 @@
|
|||||||
|
|
||||||
<% if Setting.rest_api_enabled? %>
|
<% if Setting.rest_api_enabled? %>
|
||||||
<h4><%= l(:label_api_access_key) %></h4>
|
<h4><%= l(:label_api_access_key) %></h4>
|
||||||
<div>
|
<p>
|
||||||
<%= link_to_function(l(:button_show), "$('api-access-key').toggle();")%>
|
<%= link_to_function(l(:button_show), "$('api-access-key').toggle();")%>
|
||||||
<pre id='api-access-key' class='autoscroll'><%= @user.api_key %></pre>
|
<pre id='api-access-key' class='autoscroll'><%= @user.api_key %></pre>
|
||||||
</div>
|
</p>
|
||||||
<%= javascript_tag("$('api-access-key').hide();") %>
|
<%= javascript_tag("$('api-access-key').hide();") %>
|
||||||
<p>
|
<p>
|
||||||
<% if @user.api_token %>
|
<% if @user.api_token %>
|
||||||
|
|||||||
@@ -1,7 +1,3 @@
|
|||||||
<% content_for :header_tags do %>
|
|
||||||
<%= auto_discovery_link_tag(:atom, {:action => 'index', :format => 'atom', :key => User.current.rss_key}) %>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<div class="contextual">
|
<div class="contextual">
|
||||||
<%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'add'}, :class => 'icon icon-add') + ' |' if User.current.allowed_to?(:add_project, nil, :global => true) %>
|
<%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'add'}, :class => 'icon icon-add') + ' |' if User.current.allowed_to?(:add_project, nil, :global => true) %>
|
||||||
<%= link_to(l(:label_issue_view_all), { :controller => 'issues' }) + ' |' if User.current.allowed_to?(:view_issues, nil, :global => true) %>
|
<%= link_to(l(:label_issue_view_all), { :controller => 'issues' }) + ' |' if User.current.allowed_to?(:view_issues, nil, :global => true) %>
|
||||||
|
|||||||
@@ -812,10 +812,10 @@ fr:
|
|||||||
|
|
||||||
status_active: actif
|
status_active: actif
|
||||||
status_registered: enregistré
|
status_registered: enregistré
|
||||||
status_locked: verrouillé
|
status_locked: vérouillé
|
||||||
|
|
||||||
version_status_open: ouvert
|
version_status_open: ouvert
|
||||||
version_status_locked: verrouillé
|
version_status_locked: vérouillé
|
||||||
version_status_closed: fermé
|
version_status_closed: fermé
|
||||||
|
|
||||||
text_select_mail_notifications: Actions pour lesquelles une notification par e-mail est envoyée
|
text_select_mail_notifications: Actions pour lesquelles une notification par e-mail est envoyée
|
||||||
|
|||||||
@@ -8,18 +8,6 @@ http://www.redmine.org/
|
|||||||
|
|
||||||
Adds context menu to the roadmap issue lists
|
Adds context menu to the roadmap issue lists
|
||||||
|
|
||||||
== 2010-06-24 v0.9.5
|
|
||||||
Linkify folder names on revision view
|
|
||||||
"fiters" and "options" should be hidden in print view via css
|
|
||||||
Fixed: NoMethodError when no issue params are submitted
|
|
||||||
Fixed: projects.atom with required authentication
|
|
||||||
Fixed: External links not correctly displayed in Wiki TOC
|
|
||||||
Fixed: Member role forms in project settings are not hidden after member added
|
|
||||||
Fixed: pre can't be inside p
|
|
||||||
Fixed: session cookie path does not respect RAILS_RELATIVE_URL_ROOT
|
|
||||||
Fixed: mail handler fails when the from address is empty
|
|
||||||
|
|
||||||
|
|
||||||
== 2010-05-01 v0.9.4
|
== 2010-05-01 v0.9.4
|
||||||
|
|
||||||
Filters collapsed by default on issues index page for a saved query
|
Filters collapsed by default on issues index page for a saved query
|
||||||
|
|||||||
+1
-1
@@ -33,7 +33,7 @@ Optional:
|
|||||||
4. Generate a session store secret
|
4. Generate a session store secret
|
||||||
Redmine stores session data in cookies by default, which requires
|
Redmine stores session data in cookies by default, which requires
|
||||||
a secret to be generated. Run:
|
a secret to be generated. Run:
|
||||||
rake generate_session_store
|
rake config/initializers/session_store.rb
|
||||||
|
|
||||||
5. Create the database structure. Under the application main directory:
|
5. Create the database structure. Under the application main directory:
|
||||||
rake db:migrate RAILS_ENV="production"
|
rake db:migrate RAILS_ENV="production"
|
||||||
|
|||||||
+2
-2
@@ -12,12 +12,12 @@ http://www.redmine.org/
|
|||||||
2. Copy your database settings (RAILS_ROOT/config/database.yml)
|
2. Copy your database settings (RAILS_ROOT/config/database.yml)
|
||||||
and SMTP settings (RAILS_ROOT/config/email.yml)
|
and SMTP settings (RAILS_ROOT/config/email.yml)
|
||||||
into the new config directory
|
into the new config directory
|
||||||
DO NOT REPLACE OR EDIT ANY OTHER FILES.
|
DO NOT REPLACE ANY OTHERS FILES.
|
||||||
|
|
||||||
3. Generate a session store secret
|
3. Generate a session store secret
|
||||||
Redmine stores session data in cookies by default, which requires
|
Redmine stores session data in cookies by default, which requires
|
||||||
a secret to be generated. Run:
|
a secret to be generated. Run:
|
||||||
rake generate_session_store
|
rake config/initializers/session_store.rb
|
||||||
|
|
||||||
4. Migrate your database (please make a backup before doing this):
|
4. Migrate your database (please make a backup before doing this):
|
||||||
rake db:migrate RAILS_ENV="production"
|
rake db:migrate RAILS_ENV="production"
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ module Redmine
|
|||||||
module VERSION #:nodoc:
|
module VERSION #:nodoc:
|
||||||
MAJOR = 0
|
MAJOR = 0
|
||||||
MINOR = 9
|
MINOR = 9
|
||||||
TINY = 5
|
TINY = 4
|
||||||
|
|
||||||
# Branch values:
|
# Branch values:
|
||||||
# * official release: nil
|
# * official release: nil
|
||||||
|
|||||||
@@ -67,11 +67,6 @@ module Redmine
|
|||||||
def textile_p_withtoc(tag, atts, cite, content)
|
def textile_p_withtoc(tag, atts, cite, content)
|
||||||
# removes wiki links from the item
|
# removes wiki links from the item
|
||||||
toc_item = content.gsub(/(\[\[([^\]\|]*)(\|([^\]]*))?\]\])/) { $4 || $2 }
|
toc_item = content.gsub(/(\[\[([^\]\|]*)(\|([^\]]*))?\]\])/) { $4 || $2 }
|
||||||
# sanitizes titles from links
|
|
||||||
# see redcloth3.rb, same as "#{pre}#{text}#{post}"
|
|
||||||
toc_item.gsub!(LINK_RE) { [$2, $4, $9].join }
|
|
||||||
# sanitizes image links from titles
|
|
||||||
toc_item.gsub!(IMAGE_RE) { [$5].join }
|
|
||||||
# removes styles
|
# removes styles
|
||||||
# eg. %{color:red}Triggers% => Triggers
|
# eg. %{color:red}Triggers% => Triggers
|
||||||
toc_item.gsub! %r[%\{[^\}]*\}([^%]+)%], '\\1'
|
toc_item.gsub! %r[%\{[^\}]*\}([^%]+)%], '\\1'
|
||||||
|
|||||||
@@ -17,13 +17,6 @@ file 'config/initializers/session_store.rb' do
|
|||||||
# you'll be exposed to dictionary attacks.
|
# you'll be exposed to dictionary attacks.
|
||||||
ActionController::Base.session = {
|
ActionController::Base.session = {
|
||||||
:session_key => '_redmine_session',
|
:session_key => '_redmine_session',
|
||||||
#
|
|
||||||
# Uncomment and edit the :session_path below if are hosting your Redmine
|
|
||||||
# at a suburi and don't want the top level path to access the cookies
|
|
||||||
#
|
|
||||||
# See: http://www.redmine.org/issues/3968
|
|
||||||
#
|
|
||||||
# :session_path => '/url_path_to/your/redmine/',
|
|
||||||
:secret => '#{secret}'
|
:secret => '#{secret}'
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
@@ -207,12 +207,3 @@ Ajax.Responders.register({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
function hideOnLoad() {
|
|
||||||
$$('.hol').each(function(el) {
|
|
||||||
el.hide();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
Event.observe(window, 'load', hideOnLoad);
|
|
||||||
|
|
||||||
|
|||||||
@@ -852,5 +852,4 @@ h2 img { vertical-align:middle; }
|
|||||||
#main { background: #fff; }
|
#main { background: #fff; }
|
||||||
#content { width: 99%; margin: 0; padding: 0; border: 0; background: #fff; overflow: visible !important;}
|
#content { width: 99%; margin: 0; padding: 0; border: 0; background: #fff; overflow: visible !important;}
|
||||||
#wiki_add_attachment { display:none; }
|
#wiki_add_attachment { display:none; }
|
||||||
.hide-when-print { display: none; }
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,17 +0,0 @@
|
|||||||
Return-Path: <john.doe@somenet.foo>
|
|
||||||
Received: from osiris ([127.0.0.1])
|
|
||||||
by OSIRIS
|
|
||||||
with hMailServer ; Sun, 22 Jun 2008 12:28:07 +0200
|
|
||||||
Message-ID: <000501c8d452$a95cd7e0$0a00a8c0@osiris>
|
|
||||||
To: <redmine@somenet.foo>
|
|
||||||
Subject: Ticket by unknown user
|
|
||||||
Date: Sun, 22 Jun 2008 12:28:07 +0200
|
|
||||||
MIME-Version: 1.0
|
|
||||||
Content-Type: text/plain;
|
|
||||||
format=flowed;
|
|
||||||
charset="iso-8859-1";
|
|
||||||
reply-type=original
|
|
||||||
Content-Transfer-Encoding: 7bit
|
|
||||||
|
|
||||||
This is a ticket submitted by an unknown user.
|
|
||||||
|
|
||||||
@@ -649,12 +649,6 @@ class IssuesControllerTest < ActionController::TestCase
|
|||||||
:value => 'Value for field 2'}
|
:value => 'Value for field 2'}
|
||||||
end
|
end
|
||||||
|
|
||||||
test "POST new with no issue params" do
|
|
||||||
@request.session[:user_id] = 2
|
|
||||||
post :new, :project_id => 1
|
|
||||||
assert_response :success
|
|
||||||
end
|
|
||||||
|
|
||||||
def test_copy_routing
|
def test_copy_routing
|
||||||
assert_routing(
|
assert_routing(
|
||||||
{:method => :get, :path => '/projects/world_domination/issues/567/copy'},
|
{:method => :get, :path => '/projects/world_domination/issues/567/copy'},
|
||||||
|
|||||||
@@ -364,10 +364,6 @@ h2. Subtitle with %{color:red}red text%
|
|||||||
|
|
||||||
h1. Another title
|
h1. Another title
|
||||||
|
|
||||||
h2. An "Internet link":http://www.redmine.org/ inside subtitle
|
|
||||||
|
|
||||||
h2. "Project Name !/attachments/1234/logo_small.gif! !/attachments/5678/logo_2.png!":/projects/projectname/issues
|
|
||||||
|
|
||||||
RAW
|
RAW
|
||||||
|
|
||||||
expected = '<ul class="toc">' +
|
expected = '<ul class="toc">' +
|
||||||
@@ -376,10 +372,8 @@ RAW
|
|||||||
'<li class="heading2"><a href="#Subtitle-with-another-Wiki-link">Subtitle with another Wiki link</a></li>' +
|
'<li class="heading2"><a href="#Subtitle-with-another-Wiki-link">Subtitle with another Wiki link</a></li>' +
|
||||||
'<li class="heading2"><a href="#Subtitle-with-red-text">Subtitle with red text</a></li>' +
|
'<li class="heading2"><a href="#Subtitle-with-red-text">Subtitle with red text</a></li>' +
|
||||||
'<li class="heading1"><a href="#Another-title">Another title</a></li>' +
|
'<li class="heading1"><a href="#Another-title">Another title</a></li>' +
|
||||||
'<li class="heading2"><a href="#An-Internet-link-inside-subtitle">An Internet link inside subtitle</a></li>' +
|
|
||||||
'<li class="heading2"><a href="#Project-Name">Project Name</a></li>' +
|
|
||||||
'</ul>'
|
'</ul>'
|
||||||
|
|
||||||
assert textilizable(raw).gsub("\n", "").include?(expected)
|
assert textilizable(raw).gsub("\n", "").include?(expected)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -166,15 +166,6 @@ class MailHandlerTest < ActiveSupport::TestCase
|
|||||||
assert issue.author.anonymous?
|
assert issue.author.anonymous?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_add_issue_by_anonymous_user_with_no_from_address
|
|
||||||
Role.anonymous.add_permission!(:add_issues)
|
|
||||||
assert_no_difference 'User.count' do
|
|
||||||
issue = submit_email('ticket_by_empty_user.eml', :issue => {:project => 'ecookbook'}, :unknown_user => 'accept')
|
|
||||||
assert issue.is_a?(Issue)
|
|
||||||
assert issue.author.anonymous?
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def test_add_issue_by_anonymous_user_on_private_project
|
def test_add_issue_by_anonymous_user_on_private_project
|
||||||
Role.anonymous.add_permission!(:add_issues)
|
Role.anonymous.add_permission!(:add_issues)
|
||||||
|
|||||||
Reference in New Issue
Block a user