dscf-credit 0.4.56 → 0.4.57

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4bcd4921c638c87e3e338d719bd993f8bc85cdd6bb79dd4f851ae22af6a51b35
4
- data.tar.gz: 04caed6c06626e1994fd53f3d9344fc1ddf1573a9fa2a424f6d006700a81eedb
3
+ metadata.gz: 9dd97d9f175fb7a5ca199d3936aac923a3dade3a884f3104ede5b3e360ca9eec
4
+ data.tar.gz: ceef5ac266b5c3098cc04dd7fc2fd5aa1b42a96a454fe2b58e29cb5eb483fe3e
5
5
  SHA512:
6
- metadata.gz: 70283c3783f0e65ca4f1855db5f019cf21b68ec5a6d80426ff84b7a38639c15ebcf1ecc04af3df0847d0def9f0675ccaf7d6dfdbbe44b948e362bf029c9a099f
7
- data.tar.gz: 7dda7607f319c8e7a30786c77940d3d10c2505138e8dbe59b5dbd973ae9eb51d2a477402668f590812415431f4faa56d511af624ed3f3de9b970467e2d8faafc
6
+ metadata.gz: 195cb6e222088619ac2fd418886f59045960f3b315aab843108284894ddad9d20e69bae9d1405ffde8bf974e9b1f5d498bf64c4feac8f43cdab8d04e796a4c46
7
+ data.tar.gz: 6c06c6031927a07554603dbe1030614a4e5cc195493dc2874ed796ad393b3e7baf41148a0c8547ab9c76576fb9ed89711521f6c7cf0fb692efc6f3dfc17672bc
@@ -1,31 +1,7 @@
1
1
  module Dscf
2
2
  module Credit
3
3
  class FacilitatorApplicationPolicy < ApplicationPolicy
4
- class Scope < ApplicationPolicy::Scope
5
- def resolve
6
- return scope.none unless user.has_permission?(index_permission_code)
7
- return scope.all if user.super_admin?
8
- return scope.all if admin_role?
9
-
10
- if user.has_role?("USER") || user.has_role?("FACILITATOR")
11
- scope.where(user_id: user.id)
12
- else
13
- scope.none
14
- end
15
- end
16
- end
17
-
18
- def bulk_create?
19
- user.has_permission?("facilitator_applications.bulk_create")
20
- end
21
-
22
- def owned_record?
23
- if user.has_role?("USER") || user.has_role?("FACILITATOR")
24
- record.user_id == user.id
25
- else
26
- true
27
- end
28
- end
4
+
29
5
  end
30
6
  end
31
7
  end
@@ -1,5 +1,5 @@
1
1
  module Dscf
2
2
  module Credit
3
- VERSION = "0.4.56"
3
+ VERSION = "0.4.57"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dscf-credit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.56
4
+ version: 0.4.57
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adoniyas