access_manager 0.1.2 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +0 -0
- data/LICENSE.md +0 -0
- data/README.md +0 -0
- data/lib/access_manager.rb +0 -0
- data/lib/access_manager/control.rb +0 -0
- data/lib/access_manager/engine.rb +0 -0
- data/lib/access_manager/railtie.rb +0 -0
- data/lib/access_manager/version.rb +1 -1
- data/lib/access_manager/view_helpers.rb +0 -0
- data/vendor/assets/javascripts/access_manager.js +19 -21
- metadata +3 -4
- data/vendor/assets/stylesheets/access_manager.css +0 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 30614f966e8f4ea0b497d9e2c4a582475b293be1
|
|
4
|
+
data.tar.gz: e561af4804111b66cd99928f8af78ea3cc530526
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cfa8e60641b6a1d9f145eed2128a2e1bf7fc0384b70ebcbd24a9b0db752223e8d277d3341ac1e5f271b0c21548ab748fab3621557a57219d0e0fdae2cf49d670
|
|
7
|
+
data.tar.gz: 84867153b83a0f8b41493d97d992a518d1e856d88230ceab110a6f1697a0c69e027c7cc54ce4116285baba7d9393a1b73eddf199b5f5d9a8110c8bf625071508
|
data/CHANGELOG.md
CHANGED
|
File without changes
|
data/LICENSE.md
CHANGED
|
File without changes
|
data/README.md
CHANGED
|
File without changes
|
data/lib/access_manager.rb
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,27 +1,25 @@
|
|
|
1
|
-
// Access Manager 0.1.0
|
|
2
|
-
// (c) 2014
|
|
3
|
-
// Access Manager may be freely distributed under the MIT license.
|
|
4
|
-
|
|
5
1
|
$(function () {
|
|
6
|
-
|
|
2
|
+
if ($('#current_user_actions').size() == 1) {
|
|
3
|
+
var userActions = jQuery.parseJSON($('#current_user_actions').val());
|
|
7
4
|
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
_.each($('[data-required-action]'), function (val) {
|
|
6
|
+
var requiredActions = $(val).data('required-action').split(',');
|
|
10
7
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
if (_.intersection(userActions, requiredActions).length == 0) {
|
|
9
|
+
$(val).remove();
|
|
10
|
+
}
|
|
11
|
+
});
|
|
15
12
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
_.each($('[data-menu=submenu]'), function (val) {
|
|
14
|
+
if ($(val).find('[data-required-action]').length == 0) {
|
|
15
|
+
$(val).remove();
|
|
16
|
+
}
|
|
17
|
+
});
|
|
21
18
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
_.each($('[data-menu=menu]'), function (val) {
|
|
20
|
+
if ($(val).find('[data-required-action]').length == 0) {
|
|
21
|
+
$(val).remove();
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}
|
|
27
25
|
});
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: access_manager
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matias Hick
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2017-03-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -55,7 +55,6 @@ files:
|
|
|
55
55
|
- lib/access_manager/version.rb
|
|
56
56
|
- lib/access_manager/view_helpers.rb
|
|
57
57
|
- vendor/assets/javascripts/access_manager.js
|
|
58
|
-
- vendor/assets/stylesheets/access_manager.css
|
|
59
58
|
homepage: https://github.com/unformattmh/access_manager
|
|
60
59
|
licenses:
|
|
61
60
|
- MIT
|
|
@@ -76,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
76
75
|
version: '0'
|
|
77
76
|
requirements: []
|
|
78
77
|
rubyforge_project:
|
|
79
|
-
rubygems_version: 2.
|
|
78
|
+
rubygems_version: 2.5.2
|
|
80
79
|
signing_key:
|
|
81
80
|
specification_version: 4
|
|
82
81
|
summary: Manage grants in your applications
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
.dropdown-submenu{position:relative;}
|
|
2
|
-
.dropdown-submenu>.dropdown-menu{top:0;left:100%;margin-top:-6px;margin-left:-1px;-webkit-border-radius:0 6px 6px 6px;-moz-border-radius:0 6px 6px 6px;border-radius:0 6px 6px 6px;}
|
|
3
|
-
.dropdown-submenu:hover>.dropdown-menu{display:block;}
|
|
4
|
-
.dropdown-submenu>a:after{display:block;content:" ";float:right;width:0;height:0;border-color:transparent;border-style:solid;border-width:5px 0 5px 5px;border-left-color:#cccccc;margin-top:5px;margin-right:-10px;}
|
|
5
|
-
.dropdown-submenu:hover>a:after{border-left-color:#ffffff;}
|
|
6
|
-
.dropdown-submenu.pull-left{float:none;}.dropdown-submenu.pull-left>.dropdown-menu{left:-100%;margin-left:10px;-webkit-border-radius:6px 0 6px 6px;-moz-border-radius:6px 0 6px 6px;border-radius:6px 0 6px 6px;}
|