thecore_ui_rails_admin 3.2.4 → 3.2.5
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/config/initializers/abilities.rb +2 -0
- data/lib/thecore_ui_rails_admin/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f3c52f1a2f5d388bbdac87ce0d5ee2bf5b80cc90e6c8eb0693923e59b71310af
|
4
|
+
data.tar.gz: 052b4f445671747de59c422af8876fbc915012c4696e03e137c1fdd2b6382cde
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c578d1a1b12799fd671f7bd40581030eeff615d0893a9c437a1d2b6303e43620f1091983f290c12cc80940d37422301e1d51785485124df46d56fd65c92868e
|
7
|
+
data.tar.gz: c5f7d40833d84a12c391f04e7edbffdfb43fd8983f9e8d040d4761f81349d2f481fa3c9edd7e9884ada18bea58951aef0edbda5a95356e142f8a06fc28b9f22b
|
@@ -2,6 +2,8 @@ module Abilities
|
|
2
2
|
class ThecoreUiRailsAdmin
|
3
3
|
include CanCan::Ability
|
4
4
|
def initialize user
|
5
|
+
can :access, :rails_admin # grant access to rails_admin
|
6
|
+
can :read, :dashboard # grant access to the dashboard
|
5
7
|
# No one is allowed to add or destroy settings
|
6
8
|
# just list or edit existing
|
7
9
|
cannot [:create, :destroy, :show], ThecoreSettings::Setting
|