card-mod-account 0.17.0 → 0.18.1

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: 49cf11d996ab5f48def50e2a8eab078afa0786dd33c462e43032b59b05ded298
4
- data.tar.gz: 4d8c08565a3f06def021a9dabf09195f66329e308b50024d691b72ce6d0069d9
3
+ metadata.gz: 2ba05840b147403c0678e4db3ac24db0189bedcd608b796acabe14508fe1ec21
4
+ data.tar.gz: 55985598054e74c33849c9fe582b7d129de544b35ea1dffa8ee0a945c4cb981f
5
5
  SHA512:
6
- metadata.gz: 1d79cc2bcdefda0931efb45faae41cfcd5299a42bf6082ae68c82302f31a364f6fe42ca97da2fada778de720e829ba8105a8996963af64901a51fc6003ab79b3
7
- data.tar.gz: 547b9611e60a7e48b3410fd45f2c5ee89c6c9e1ca1ccfb273d5758f60a4331acc76f3d6d197303b93c9f8b6f2aec5f5dd5580b679ce495e170f657248993ab19
6
+ metadata.gz: 4e43112b506e88693cfc28b9a27f9895262c23cd3db7665704717636db17d572059c15f8fd46a26512efb23a193e704ba15d69e37ff75c3254ca8b8f4bd1796e
7
+ data.tar.gz: ad7d881bd0ab9f5b2695f14cd86ae3171b2b8551353d0258c2a8db6416651985f14c2601e303886f9098de3e7732eac0ed6f587231c1da4b36ce00fd45dafdbc
@@ -82,7 +82,7 @@ end
82
82
 
83
83
  def with_enabled_roles
84
84
  Auth.as_bot do
85
- Card::Codename.exists?(:enabled_roles) ? yield(enabled_roles_card) : fetch_roles
85
+ Card::Codename.exist?(:enabled_roles) ? yield(enabled_roles_card) : fetch_roles
86
86
  end
87
87
  end
88
88
 
@@ -1,21 +1,21 @@
1
1
  format do
2
- view :verify_url, cache: :never do
2
+ view :verify_url, cache: :never, denial: :blank do
3
3
  raise Error::PermissionDenied unless card.ok?(:create) || card.action
4
4
 
5
5
  token_url :verify_and_activate, anonymous: true
6
6
  end
7
7
 
8
- view :reset_password_url do
8
+ view :reset_password_url, denial: :blank do
9
9
  raise Error::PermissionDenied unless card.password_card.ok? :update
10
10
 
11
11
  token_url :reset_password
12
12
  end
13
13
 
14
- view :token_expiry do
14
+ view :token_expiry, denial: :blank do
15
15
  "(#{token_expiry_sentence}"
16
16
  end
17
17
 
18
- view :token_days do
18
+ view :token_days, denial: :blank do
19
19
  Card.config.token_expiry / 1.day
20
20
  end
21
21
 
data/set/right/account.rb CHANGED
@@ -1,7 +1,5 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
 
3
- delegate :own_account?, to: :accounted
4
-
5
3
  card_accessor :email
6
4
  card_accessor :password
7
5
  card_accessor :salt
@@ -9,6 +7,10 @@ card_accessor :status
9
7
 
10
8
  require_field :email
11
9
 
10
+ def own_account?
11
+ accounted&.try :own_account?
12
+ end
13
+
12
14
  def accounted
13
15
  left
14
16
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: card-mod-account
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.18.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ethan McCutchen
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2024-06-12 00:00:00.000000000 Z
13
+ date: 2024-11-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: card
@@ -18,84 +18,84 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 1.107.0
21
+ version: 1.108.1
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - '='
27
27
  - !ruby/object:Gem::Version
28
- version: 1.107.0
28
+ version: 1.108.1
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: card-mod-email
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.17.0
35
+ version: 0.18.1
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - '='
41
41
  - !ruby/object:Gem::Version
42
- version: 0.17.0
42
+ version: 0.18.1
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: card-mod-permissions
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - '='
48
48
  - !ruby/object:Gem::Version
49
- version: 0.17.0
49
+ version: 0.18.1
50
50
  type: :runtime
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
54
  - - '='
55
55
  - !ruby/object:Gem::Version
56
- version: 0.17.0
56
+ version: 0.18.1
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: card-mod-list
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
61
  - - '='
62
62
  - !ruby/object:Gem::Version
63
- version: 0.17.0
63
+ version: 0.18.1
64
64
  type: :runtime
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - '='
69
69
  - !ruby/object:Gem::Version
70
- version: 0.17.0
70
+ version: 0.18.1
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: card-mod-integrate
73
73
  requirement: !ruby/object:Gem::Requirement
74
74
  requirements:
75
75
  - - '='
76
76
  - !ruby/object:Gem::Version
77
- version: 0.17.0
77
+ version: 0.18.1
78
78
  type: :runtime
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
82
  - - '='
83
83
  - !ruby/object:Gem::Version
84
- version: 0.17.0
84
+ version: 0.18.1
85
85
  - !ruby/object:Gem::Dependency
86
86
  name: card-mod-edit
87
87
  requirement: !ruby/object:Gem::Requirement
88
88
  requirements:
89
89
  - - '='
90
90
  - !ruby/object:Gem::Version
91
- version: 0.17.0
91
+ version: 0.18.1
92
92
  type: :runtime
93
93
  prerelease: false
94
94
  version_requirements: !ruby/object:Gem::Requirement
95
95
  requirements:
96
96
  - - '='
97
97
  - !ruby/object:Gem::Version
98
- version: 0.17.0
98
+ version: 0.18.1
99
99
  description: ''
100
100
  email:
101
101
  - info@decko.org
@@ -144,7 +144,7 @@ files:
144
144
  - set/type_plus_right/user/email.rb
145
145
  homepage: https://decko.org
146
146
  licenses:
147
- - GPL-3.0
147
+ - GPL-3.0-or-later
148
148
  metadata:
149
149
  source_code_uri: https://github.com/decko-commons/decko
150
150
  homepage_uri: https://decko.org