printos 0.3.13 → 0.3.14

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
  SHA1:
3
- metadata.gz: 230957d84ddad83f0a55858924a71927273b0a7c
4
- data.tar.gz: 426e66437488d7f3cef2b431dccde5ac0e22340c
3
+ metadata.gz: d55159b491456c4aef62f7521df750ccef81f125
4
+ data.tar.gz: 7fc2f8193fe74c90019e62b2def766cf359f1286
5
5
  SHA512:
6
- metadata.gz: d445d62246be55d5156abeb786236e6a1a0ce6d493a73689d0d727cefd62afd5fd684b86070dcd505d248b85af1fb2119ac2210d3b93a2aae78086b3bf221a22
7
- data.tar.gz: f6b661becb78f75afbfdd84ea1e0e251648d074655849f2b4e76929d531990d4dd5ebc5f4f235d7b91e0c01c6582fce1dd564de50402d9803d2ecb04bafb05d6
6
+ metadata.gz: 1a3a7f21a1afc9bb143b6a092bf3a935963855e71a2e6a1ccaafb3114294fda989e0730f901df30e2213d1bad0eb82cf99c109cd91b2f0f90e15be6a0ceb4c12
7
+ data.tar.gz: 66ee85a0fc92f70162c8c0ad97031de83ffddc134ce8fcaba9a34581e5a3f4a923954ebe1bd3e42d879466ba0f64404b1f9c5dce131dc65fc4dba0bcb23dbb53
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- printos (0.3.13)
4
+ printos (0.3.14)
5
5
  request_store (~> 1.3.2)
6
6
  rest-client (~> 2.0.2)
7
7
 
@@ -1,12 +1,8 @@
1
1
  module Printos
2
2
  module Helpers
3
3
 
4
- def authorization
5
- @authorization ||= PrintosClient.get_instance.authorization
6
- end
7
-
8
4
  def user_permissions
9
- @permissions ||= authorization[:permissions]&.map { |p| p[:name] }
5
+ @permissions ||= PrintosClient.get_instance.permissions
10
6
  end
11
7
 
12
8
  def has_admin_permission?
@@ -65,6 +65,10 @@ class PrintosClient
65
65
  @authorization
66
66
  end
67
67
 
68
+ def permissions
69
+ authorization[:permissions]&.map { |p| p[:name] }
70
+ end
71
+
68
72
  def admin_context
69
73
  Printos::AaaService.admin_context
70
74
  end
@@ -1,3 +1,3 @@
1
1
  module Printos
2
- VERSION = '0.3.13'
2
+ VERSION = '0.3.14'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: printos
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.13
4
+ version: 0.3.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - "'Dalmir"