On Thursday, January 23, 2014 8:19:31 AM UTC-8, Paweł Pierzchała wrote:
> Hi Tobias,
> project approvals are working fine, it looks like your instance did not 
> restart. Please double check that you have edited the right configuration 
> file: config/gitorious.yml, not config/gitorious.sample.yml. Please make sure 
> that Gitorious was restarted, by checking uptime of all unicorns:
> 
> 
>   ps aux | grep unicorn
> You can restart all Gitorious' services with:
>   sudo restart_gitorious
> 
> 
> Cheers,
> Pawel
> 
> 
> 
> 
> 
> On Thu, Jan 23, 2014 at 4:45 PM,  <[email protected]> wrote:
> 
> 
> Hello,
> 
> 
> 
> i set enable_project_approvals to true, restart the app,  but users are still 
> able to create projects and the admin site reports that this setting not 
> enabled.
> 
> Did i missed something?
> 
> 
> 
> I'm runing the current development version of Gitorious 3.0 
> (c9746cc4a288e110b50de3c0abc0abf57cd3190b)
> 
> 
> 
> br
> 
> Tobias
> 
> 
> 
> 
> 
> --
> 
> --
> 
> To post to this group, send email to [email protected]
> 
> To unsubscribe from this group, send email to
> 
> [email protected]
> 
> 
> 
> ---
> 
> You received this message because you are subscribed to the Google Groups 
> "Gitorious" group.
> 
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> 
> For more options, visit https://groups.google.com/groups/opt_out.

I found that adding

require "active_record"

at the top passes the first check and therefore passes the second check.  I run 
into another problem though that's related to wiki permissions or something.  
When I try to edit the project I get:

ActionView::Template::Error (undefined method `wiki_permissions' for 
nil:NilClass):
    44: <% end %>
    45: <%= form.input :wiki_enabled, :as => :boolean, :label => 
t(:wiki_enabled, :scope => scope) %>
    46: <% if form.object.persisted? %>
    47:   <%= form.input(:wiki_permissions, :label => t(:wiki_permissions, 
:scope => scope), :collection => wiki_permission_choices) %>
    48: <% end %>
    49: <% if form.object.new_record? && Gitorious.private_repositories? %>
    50:   <%= form.private_toggle(params) %>
  app/models/project.rb:227:in `wiki_permissions'
  app/views/projects/_form.html.erb:47:in 
`_app_views_projects__form_html_erb__1441496159765139919_48869540'
  app/views/projects/edit.html.erb:37:in `block (3 levels) in 
_app_views_projects_edit_html_erb___2589402437665301611_60983660'
  app/helpers/tabs_helper.rb:100:in `block in tab_pane'
  app/helpers/tabs_helper.rb:99:in `tab_pane'
  app/views/projects/edit.html.erb:34:in `block (2 levels) in 
_app_views_projects_edit_html_erb___2589402437665301611_60983660'
  app/helpers/tabs_helper.rb:89:in `block in tab_content'
  app/helpers/tabs_helper.rb:88:in `tab_content'
  app/helpers/tabs_helper.rb:55:in `block in tabbable'
  app/helpers/tabs_helper.rb:44:in `tabbable'
  app/views/projects/edit.html.erb:33:in `block in 
_app_views_projects_edit_html_erb___2589402437665301611_60983660'
  app/views/projects/edit.html.erb:30:in 
`_app_views_projects_edit_html_erb___2589402437665301611_60983660'
  app/controllers/projects_controller.rb:197:in `render_edit_form'
  app/controllers/projects_controller.rb:130:in `edit'

I get the same when I click the wiki tab.  I notice the wiki git repo doesn't 
exist.  I think when the project is created during approval the underlying 
storage is not created.

-- 
-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"Gitorious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to