xforum 0.0.373 → 0.0.374

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d41a0792d86f523f5cd6e101d5a122968c528a1e
4
- data.tar.gz: 0e7084ef6a0a2678fef31d1daee19251df18e069
3
+ metadata.gz: 1148c48e8be550b51b89135091ca7d5d55f4e822
4
+ data.tar.gz: b518bc09e0ea76bf5184f0640a97dea6894e098a
5
5
  SHA512:
6
- metadata.gz: 2303f14698428456128f29dd44f9b258df5aa249f37479db61a5957a78697e3647499b45031ca95dcec88622c281fc467ed7c5e831dcfece7fbeec8b98cc1570
7
- data.tar.gz: e91455ca524b2af719a0ff75e2d82441b9ce734ef2cd5ad24e1c48aa76c595cb475054b9ea9d0f46a8a53c5c2e479db6af606810f1a3b7c5bf1c6d411da10f6c
6
+ metadata.gz: a0580d9bdfb82172c83a8808f5617143889b73a02af255cafbbb1e7df8e039d566b849f1195d2934c5b2b034d68e175891570df64872a81f62db3890f09d9b7d
7
+ data.tar.gz: 205f76c4560c6552bdd96d74452d2ada20082442860ad29008d3aedf4b9b98a3c47687b975bcecf3d73f1363a0fc56b56b54bf972e332dc312e206ac8d1c318c
@@ -67,7 +67,7 @@ module Xforum
67
67
  category_list= Category.grab('all',[:id,:name,:closed,:restricted,:is_moderated],{})
68
68
  category_list=ForumAssist.make_last(category_list.clone, {key: :id,ref:Category.where(name:'request new category').pluck(:id)[0]})
69
69
  category_list=ForumAssist.make_first(category_list.clone,{key: :id,ref:Category.where(name:'select category').pluck(:id)[0]})
70
- category_list=PeopleList.check_restrictions(category_list.clone,user,'categories') unless user.forum_admin?
70
+ category_list=PeopleList.check_restrictions(category_list.clone,user,'categories')
71
71
  category_list=Translation.translate_list(category_list.clone,params[:language],'category')
72
72
  category_list.push({id:0, item:'admin',value: I18n.t('xForum.Admin_name')}) if user.forum_admin?
73
73
  {list_data:category_list,id:params[:list]}
@@ -26,7 +26,7 @@ module Xforum
26
26
  topics=Topic.grab({category_id:category_id,closed:false,suggestion:false}, [:id,:name,:state,:restricted,:closed,:is_moderated],{swap:{name: :item}}) :
27
27
  topics=Topic.grab({category_id:category_id}, [:id,:name,:state,:restricted,:closed,:is_moderated],{swap:{name: :item}})
28
28
  topics=[] if topics[0][:id].nil?
29
- topics=PeopleList.check_restrictions(topics,user,'topic') unless user.forum_admin?
29
+ topics=PeopleList.check_restrictions(topics,user,'topic')
30
30
  a=Topic.grab({name:'select topic'},[:id,:name,:state,:restricted,:closed],{swap:{name: :item}})[0]
31
31
  b=Topic.grab({name:'request new topic'}, [:id,:name,:state,:restricted,:closed],{swap:{name: :item}})[0]
32
32
  topics.unshift(a)
@@ -1,4 +1,4 @@
1
- class AddHasVideoToPhoto < ActiveRecord::Migration
1
+ class AddIsModeratedToCategoryTopic < ActiveRecord::Migration
2
2
  def change
3
3
  add_column :xforum_topics, :is_moderated, :boolean, default:false
4
4
  add_column :xforum_categories, :is_moderated, :boolean, default:false
@@ -1,3 +1,3 @@
1
1
  module Xforum
2
- VERSION = '0.0.373'
2
+ VERSION = '0.0.374'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xforum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.373
4
+ version: 0.0.374
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert D Blanton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-14 00:00:00.000000000 Z
11
+ date: 2014-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sqlite3