motor-admin 0.4.13 → 0.4.15

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
  SHA256:
3
- metadata.gz: 7acb270663278a2adf90358d69bb0cbb01c3b6e67c8ff490568177faf7cc4909
4
- data.tar.gz: ec6363bdfe451eea2d247a14ffa1dbde1040a01f716dd3def9326a3b215dd3fd
3
+ metadata.gz: d242e8d77bbca0b3e4feda82421a08560cf16b6209a98fd335c5086a3bb00f96
4
+ data.tar.gz: 0ceea52e6274d0ec3ff5259dc68285f6f299ad65c2603f8915280d283403bc85
5
5
  SHA512:
6
- metadata.gz: 2b2fbb4f9d84039afe065e6fec74aadfb2dea9b21faf28ebf6e50e8b12c98d204785118c4c2479465b47f92868415e5920e8492b9c2ee3010d8906fa07c4d967
7
- data.tar.gz: 183cecebf5b394c90bb76c58f0a5594cdc7ba995ec666cad3f1718fa8438bebd857011e0130bb6525621f680dded78382bd3c920f62d01de4d6896281818e5ec
6
+ metadata.gz: af6f6e082107c04fd6cb780f5792015272b69afa2c08e437a3c1db1e33b1901f337bf824f41b7407beeb386b6641562211049a451f6de6d2ca1f6fade8a7f525
7
+ data.tar.gz: 28e0bc0f3d6a83c2328ff1481b6f577c66c6d895d674c75803e2261f154f4b6ee9869f25c0dc2bb1208cc5973a95292650f7fa109f0114b604148aa3369807c4
@@ -45,6 +45,11 @@ module Motor
45
45
  next if reference_model_name &&
46
46
  (model_class.nil? || !ability.can?(:read, model_class))
47
47
 
48
+ if !ability.can?(:update, model, column[:name]) &&
49
+ column[:access_type] != BuildSchema::ColumnAccessTypes::HIDDEN
50
+ column = column.merge(access_type: BuildSchema::ColumnAccessTypes::READ_ONLY)
51
+ end
52
+
48
53
  column
49
54
  end.compact
50
55
  end
data/lib/motor/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Motor
4
- VERSION = '0.4.13'
4
+ VERSION = '0.4.15'
5
5
  end
@@ -3964,9 +3964,9 @@
3964
3964
  "images/layers-2x.png": "images/layers-2x.png",
3965
3965
  "images/layers.png": "images/layers.png",
3966
3966
  "images/marker-icon.png": "images/marker-icon.png",
3967
- "main-68900e1e3acdee81d5c5.css.gz": "main-68900e1e3acdee81d5c5.css.gz",
3968
- "main-68900e1e3acdee81d5c5.js.LICENSE.txt": "main-68900e1e3acdee81d5c5.js.LICENSE.txt",
3969
- "main-68900e1e3acdee81d5c5.js.gz": "main-68900e1e3acdee81d5c5.js.gz",
3970
- "main.css": "main-68900e1e3acdee81d5c5.css",
3971
- "main.js": "main-68900e1e3acdee81d5c5.js"
3967
+ "main-ff194825390dee1014af.css.gz": "main-ff194825390dee1014af.css.gz",
3968
+ "main-ff194825390dee1014af.js.LICENSE.txt": "main-ff194825390dee1014af.js.LICENSE.txt",
3969
+ "main-ff194825390dee1014af.js.gz": "main-ff194825390dee1014af.js.gz",
3970
+ "main.css": "main-ff194825390dee1014af.css",
3971
+ "main.js": "main-ff194825390dee1014af.js"
3972
3972
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motor-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.13
4
+ version: 0.4.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pete Matsyburka
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-22 00:00:00.000000000 Z
11
+ date: 2023-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ar_lazy_preload
@@ -2235,8 +2235,8 @@ files:
2235
2235
  - ui/dist/images/layers-2x.png
2236
2236
  - ui/dist/images/layers.png
2237
2237
  - ui/dist/images/marker-icon.png
2238
- - ui/dist/main-68900e1e3acdee81d5c5.css.gz
2239
- - ui/dist/main-68900e1e3acdee81d5c5.js.gz
2238
+ - ui/dist/main-ff194825390dee1014af.css.gz
2239
+ - ui/dist/main-ff194825390dee1014af.js.gz
2240
2240
  - ui/dist/manifest.json
2241
2241
  homepage:
2242
2242
  licenses: