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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1148c48e8be550b51b89135091ca7d5d55f4e822
|
4
|
+
data.tar.gz: b518bc09e0ea76bf5184f0640a97dea6894e098a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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')
|
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]}
|
data/app/models/xforum/topic.rb
CHANGED
@@ -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')
|
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)
|
data/lib/xforum/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2014-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sqlite3
|