can not make a wiki not public
Support Ticket
+status
answered
+tags
+issues
I use wagn 1.7.0 from gitgub.
I want to have a closed wiki. Only signed in users should be alle to read any cards. I tried to edit *all*read, but:
- Changing the value fom Anyone to Anyone Signed In does not work. After saving the content is still Anyone
- deleting an adding *all*read again results in an error:
Oops! error saving *all+*read: undefined method `raw_content' for nil:NilClass, /data/var/local/www/wiki/wagn/lib/wagn/model/permissions.rb:110:in `rule_card'/data/var/local/www/wiki/wagn/app/models/user.rb:59:in `as'/data/var/local/www/wiki/wagn/lib/wagn/model/permissions.rb:109:in `rule_card'/data/var/local/www/wiki/wagn/lib/wagn/model/permissions.rb:112:in `rule_card'/data/var/local/www/wiki/wagn/app/models/user.rb:59:in `as'/data/var/local/www/wiki/wagn/lib/wagn/model/permissions.rb:109:in `rule_card'/data/var/local/www/wiki/wagn/lib/wagn/model/permissions.rb:195:in `set_read_rule'/data/var/local/www/wiki/wagn/lib/wagn/model/permissions.rb:271:in `included'/var/lib/gems/1.8/gems/activesupport-2.3.11/lib/active_support/callbacks.rb:93:in `call'/var/lib/gems/1.8/gems/activesupport-2.3.11/lib/active_support/callbacks.rb:93:in `run'/var/lib/gems/1.8/gems/activesupport-2.3.11/lib/active_support/callbacks.rb:92:in `each'/var/lib/gems/1.8/gems/activesupport-2.3.11/lib/active_support/callbacks.rb:92:in `send'/var/lib/gems/1.8/gems/activesupport-2.3.11/lib/active_support/callbacks.rb:92:in `run'/var/lib/gems/1.8/gems/activesupport-2.3.11/lib/active_support/callbacks.rb:276:in `run_callbacks'/var/lib/gems/1.8/gems/activerecord-2.3.11/lib/active_record/callbacks.rb:344:in `callback'/var/lib/gems/1.8/gems/activerecord-2.3.11/lib/active_record/callbacks.rb:249:in `create_or_update'/var/lib/gems/1.8/gems/activerecord-2.3.11/lib/active_record/base.rb:2577:in `save_without_validation'/var/lib/gems/1.8/gems/activerecord-2.3.11/lib/active_record/validations.rb:1090:in `save_without_dirty'/var/lib/gems/1.8/gems/activerecord-2.3.11/lib/active_record/dirty.rb:79:in `save_without_transactions'/var/lib/gems/1.8/gems/activerecord-2.3.11/lib/active_record/transactions.rb:229:in `send'/var/lib/gems/1.8/gems/activerecord-2.3.11/lib/active_record/transactions.rb:229:in `with_transaction_returning_status'/var/lib/gems/1.8/gems/activerecord-2.3.11/lib/active_record/connection_adapters/abstract/database_statements.rb:136:in `transaction'/var/lib/gems/1.8/gems/activerecord-2.3.11/lib/active_record/transactions.rb:182:in `transaction'/var/lib/gems/1.8/gems/activerecord-2.3.11/lib/active_record/transactions.rb:228:in `with_transaction_returning_status'/var/lib/gems/1.8/gems/activerecord-2.3.11/lib/active_record/transactions.rb:196:in `save_without_trash'/var/lib/gems/1.8/gems/activerecord-2.3.11/lib/active_record/transactions.rb:208:in `rollback_active_record_state!'/var/lib/gems/1.8/gems/activerecord-2.3.11/lib/active_record/transactions.rb:196:in `save_without_trash'/data/var/local/www/wiki/wagn/app/models/card.rb:111:in `save_without_permissions'/data/var/local/www/wiki/wagn/lib/wagn/model/permissions.rb:53:in `send'/data/var/local/www/wiki/wagn/lib/wagn/model/permissions.rb:53:in `run_checked_save'/data/var/local/www/wiki/wagn/lib/wagn/model/permissions.rb:42:in `save'/data/var/local/www/wiki/wagn/app/controllers/card_controller.rb:114:in `create'/var/lib/gems/1.8/gems/actionpack-2.3.11/lib/action_controller/base.rb:1333:in `send'/var/lib/gems/1.8/gems/actionpack-2.3.11/lib/action_controller/base.rb:1333:in `perform_action_without_filters'/var/lib/gems/1.8/gems/actionpack-2.3.11/lib/action_controller/filters.rb:617:in `call_filters'/var/lib/gems/1.8/gems/actionpack-2.3.11/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'/var/lib/gems/1.8/gems/actionpack-2.3.11/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'/var/lib/gems/1.8/gems/activesupport-2.3.11/lib/active_support/core_ext/benchmark.rb:17:in `ms'/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'/var/lib/gems/1.8/gems/activesupport-2.3.11/lib/active_support/core_ext/benchmark.rb:17:in `ms'/var/lib/gems/1.8/gems/actionpack-2.3.11/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'/var/lib/gems/1.8/gems/actionpack-2.3.11/lib/action_controller/rescue.rb:160:in `perform_action_without_flash'/var/lib/gems/1.8/gems/actionpack-2.3.11/lib/action_controller/flash.rb:151:in `perform_action'/var/lib/gems/1.8/gems/actionpack-2.3.11/lib/action_controller/base.rb:532:in `send'/var/lib/gems/1.8/gems/actionpack-2.3.11/lib/action_controller/base.rb:532:in `process_without_filters'/var/lib/gems/1.8/gems/actionpack-2.3.11/lib/action_controller/filters.rb:606:in `process'/var/lib/gems/1.8/gems/actionpack-2.3.11/lib/action_controller/base.rb:391:in `process'/var/lib/gems/1.8/gems/actionpack-2.3.11/lib/action_controller/base.rb:386:in `call'/var/lib/gems/1.8/gems/actionpack-2.3.11/lib/action_controller/routing/route_set.rb:438:in `call'/var/lib/gems/1.8/gems/actionpack-2.3.11/lib/action_controller/dispatcher.rb:87:in `dispatch'/var/lib/gems/1.8/gems/actionpack-2.3.11/lib/action_controller/dispatcher.rb:121:in `_call'/var/lib/gems/1.8/gems/actionpack-2.3.11/lib/action_controller/dispatcher.rb:130:in `build_middleware_stack'/var/lib/gems/1.8/gems/activerecord-2.3.11/lib/active_record/query_cache.rb:29:in `call'/var/lib/gems/1.8/gems/activerecord-2.3.11/lib/active_record/query_cache.rb:29:in `call'/var/lib/gems/1.8/gems/activerecord-2.3.11/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'/var/lib/gems/1.8/gems/activerecord-2.3.11/lib/active_record/query_cache.rb:9:in `cache'/var/lib/gems/1.8/gems/activerecord-2.3.11/lib/active_record/query_cache.rb:28:in `call'/var/lib/gems/1.8/gems/activerecord-2.3.11/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'/var/lib/gems/1.8/gems/actionpack-2.3.11/lib/action_controller/string_coercion.rb:25:in `call'/var/lib/gems/1.8/gems/rack-1.1.2/lib/rack/head.rb:9:in `call'/var/lib/gems/1.8/gems/rack-1.1.2/lib/rack/methodoverride.rb:24:in `call'/var/lib/gems/1.8/gems/actionpack-2.3.11/lib/action_controller/params_parser.rb:15:in `call'/var/lib/gems/1.8/gems/actionpack-2.3.11/lib/action_controller/session/cookie_store.rb:99:in `call'/var/lib/gems/1.8/gems/actionpack-2.3.11/lib/action_controller/failsafe.rb:26:in `call'/var/lib/gems/1.8/gems/rack-1.1.2/lib/rack/lock.rb:11:in `call'/var/lib/gems/1.8/gems/rack-1.1.2/lib/rack/lock.rb:11:in `synchronize'/var/lib/gems/1.8/gems/rack-1.1.2/lib/rack/lock.rb:11:in `call'/var/lib/gems/1.8/gems/actionpack-2.3.11/lib/action_controller/dispatcher.rb:106:in `call'/var/lib/gems/1.8/gems/thin-1.2.11/lib/rack/adapter/rails.rb:69:in `call'/var/lib/gems/1.8/gems/thin-1.2.11/lib/thin/connection.rb:84:in `pre_process'/var/lib/gems/1.8/gems/thin-1.2.11/lib/thin/connection.rb:82:in `catch'/var/lib/gems/1.8/gems/thin-1.2.11/lib/thin/connection.rb:82:in `pre_process'/var/lib/gems/1.8/gems/thin-1.2.11/lib/thin/connection.rb:57:in `process'/var/lib/gems/1.8/gems/thin-1.2.11/lib/thin/connection.rb:42:in `receive_data'/var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'/var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'/var/lib/gems/1.8/gems/thin-1.2.11/lib/thin/backends/base.rb:61:in `start'/var/lib/gems/1.8/gems/thin-1.2.11/lib/thin/server.rb:159:in `start'/var/lib/gems/1.8/gems/thin-1.2.11/lib/thin/controllers/controller.rb:86:in `start'/var/lib/gems/1.8/gems/thin-1.2.11/lib/thin/runner.rb:185:in `send'/var/lib/gems/1.8/gems/thin-1.2.11/lib/thin/runner.rb:185:in `run_command'/var/lib/gems/1.8/gems/thin-1.2.11/lib/thin/runner.rb:151:in `run!'/var/lib/gems/1.8/gems/thin-1.2.11/bin/thin:6/usr/bin/thin:19:in `load'/usr/bin/thin:19
How could I setup a wagn wiki which only signed in user could read an edit?