active_admin_basic_authorization_adapter 0.0.32 → 0.0.33
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/lib/active_admin/authorizations/default_authorization.rb +28 -0
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 27f834eec05025b47239d305055cb23d4f0404346737d3afeb604d39eb838f8f
|
|
4
|
+
data.tar.gz: a63c7b485acc15077b6f6e5aea3eb942f7019e82fd2b275de8fe8bd101afc37a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ff03bebb8e7505c6886c2c33a1bb64839162b047de6357ada635bcab16260fb47864859c11c07f01e962c26cae55b8b9bc99b4feb0593882dccd61b4a17e59b4
|
|
7
|
+
data.tar.gz: d81f7e10e75cc6be485c68096db7a7d1c14959694afb0df2d0067c936c7e686e42939ec2599a4bf7cefa769448e91d8513de08387cd8485d50d6bf97ce3be094
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module ActiveAdmin
|
|
4
|
+
module Authorizations
|
|
5
|
+
class DefaultAuthorization
|
|
6
|
+
def initialize(user, record = nil)
|
|
7
|
+
@user = user
|
|
8
|
+
@record = record
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
def read
|
|
12
|
+
true
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def create
|
|
16
|
+
true
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
def update
|
|
20
|
+
true
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def destroy
|
|
24
|
+
true
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: active_admin_basic_authorization_adapter
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.33
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Rémi Wallaere
|
|
@@ -117,6 +117,7 @@ executables: []
|
|
|
117
117
|
extensions: []
|
|
118
118
|
extra_rdoc_files: []
|
|
119
119
|
files:
|
|
120
|
+
- lib/active_admin/authorizations/default_authorization.rb
|
|
120
121
|
- lib/active_admin_basic_authorization_adapter.rb
|
|
121
122
|
- lib/generators/basic_admin_authorization/authorization/USAGE
|
|
122
123
|
- lib/generators/basic_admin_authorization/authorization/authorization_generator.rb
|