caboose-cms 0.5.203 → 0.5.204

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MjFlNmJkOGIwNzkyNDIzNTljN2MxYjliN2NlNzBhMjMwMGU1MjQ4MQ==
4
+ ZGQxN2VhNTU4MDUxZjBiYWFjMTJjNmVmNjU0ODMxMmEwNDFkMmQ1Mw==
5
5
  data.tar.gz: !binary |-
6
- NDFlMmZmMmI3OGRmZjQyOTQ2ZjVmMGJjZmI2ODU4ZWM4ODg5YTg4Yw==
6
+ YzA5MjBkNTBiMjMxOTg0OWE2YjczOTE1ODgzZTJhMzgyMjliNTBkYQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MGQ0NzFiNDYzNzc0ZTUyZGI2NzYwYTc5MDdmMzQ1ZTUyOTYyNmQ2MzczZWU2
10
- NWE1N2QxZGQzOGYxMmQyYzZiOTE1MzUzN2RmZjAxNTk5YWRhYjY2M2VhZjYy
11
- ZWY2ZDI1ODdmNWJkY2I0NGVmNjM1NjlhNjMyMjY3ZWU0NjZiN2Y=
9
+ N2YwMDYyZWM3NjVhYjA5NGJmMzlhNTliOTgzZGIyNmFhY2FkOGEyZWQ2MjI1
10
+ YTNjNzVjNmZkMThjZWU3MWM0NWM4ZTBiZDRhZTdlMzE5YjVkMTM1ZjQ3MDQz
11
+ MzJjMDQ1ODE1MTM0ZGU4NDUzYzNhZGRlNWI2NGNmZDg2MWNjYTM=
12
12
  data.tar.gz: !binary |-
13
- NDNkMmRmNTA3ODVjZTNjNzAyMDM1MWRiODc4MzUyMDA0NTNkMGQ0ZjhjMzVl
14
- NmE3OTNmODg3MmY2ZDNlZjJhMjQwNmE2NTAyZGQxZjBmN2JlM2IxZjFhODQ5
15
- Y2FhNDg2NDA3ZTkxN2U5NGQyNjU3MmRiMjM5M2E4OTUyYWZhMGY=
13
+ YTUyYWEyZDI3Nzg3YTI5ZjM3OGQ2ZTAyYjczYWJkOTFmYjMyMGUxY2FkOGM0
14
+ MjgzYTYxYThjYWYyZGIwM2NlYTAyNzFhM2EwODA5ZWE0ZGQ1MzFiYTQwOGNl
15
+ ZTBmZGY5YTc2YjllYjhiYzYwNzdiNzVlYjU5MWZiYTkwYjVmYmE=
@@ -21,7 +21,7 @@ BlockController.prototype = {
21
21
  },
22
22
 
23
23
  base_url: function(b)
24
- {
24
+ {
25
25
  return '/admin/' + (b.page_id ? 'pages/' + b.page_id : 'posts/' + b.post_id) + '/blocks';
26
26
  },
27
27
 
@@ -32,7 +32,7 @@ BlockController.prototype = {
32
32
 
33
33
  edit_block: function(block_id)
34
34
  {
35
- window.location = this.block_url(that.block) + '/edit';
35
+ window.location = this.base_url(this.block) + '/' + block_id + '/edit';
36
36
  },
37
37
 
38
38
  /*****************************************************************************
@@ -4,6 +4,7 @@ module Caboose
4
4
 
5
5
  # GET /admin
6
6
  def index
7
+ return if !user_is_allowed('admin', 'view')
7
8
  #if logged_in?
8
9
  # redirect_to '/admin/pages'
9
10
  # return
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.5.203'
2
+ VERSION = '0.5.204'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.203
4
+ version: 0.5.204
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-24 00:00:00.000000000 Z
11
+ date: 2015-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg