uffizzi_core 2.0.13 → 2.0.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
  SHA256:
3
- metadata.gz: 1ce237a7f1c46dcb9abbe62124bae678aa95e5a91a371da56c1358295dfaf035
4
- data.tar.gz: a5afbb4dbe4b8bd0df78b4f7abb8f402dee2a0122ec409a004b344abadf560c7
3
+ metadata.gz: f3f418bff9703cbe59f1ee9a69e52f14aa1ad2824a4118ad4b6d97c703347243
4
+ data.tar.gz: e9d6492698a43db8833b1175c10b95054d2b2c4230ade5aeee0d7ca49640ba1e
5
5
  SHA512:
6
- metadata.gz: 3c96a8dbd89bf163574a28c4d5d01f884a64d4f82f5f665c6322e1030fe33107976410d418478f997824fd2b1d9be4b568e34efa6dcd7c6963d5aa8a309b9be5
7
- data.tar.gz: c60515fe9eff88d86a9b5a3d8bd30617a56e33271e671d02a52737e369ee09bdf17a83ab7e9a378f4d7c21161e0e0bad6ee24340b50a952f65471a0208b5100a
6
+ metadata.gz: 981763aac83a419775db0130ac7b984e896fc36a11170c69c9f28d2045e5fd4024f74c3fafc538fa88a955b964377976845a0793b8e373e409ab6e3acc7e0bbd
7
+ data.tar.gz: 16a2fe83f500ab8e56ce259a978ea6a6318d1de83027edb71f06205156eb8d98fb24b27ab758262b06c2fb7696199e4c40a91da87b71405df94ad37a469430cf
@@ -16,8 +16,6 @@ module UffizziCore::Concerns::Models::Account
16
16
  validates :kind, presence: true
17
17
  validates :domain, uniqueness: true, if: :domain
18
18
 
19
- belongs_to :owner, class_name: UffizziCore::User.name, foreign_key: :owner_id
20
-
21
19
  has_many :memberships, dependent: :destroy
22
20
  has_many :users, through: :memberships
23
21
  has_many :credentials, dependent: :destroy
@@ -2,4 +2,6 @@
2
2
 
3
3
  class UffizziCore::Account < UffizziCore::ApplicationRecord
4
4
  include UffizziCore::Concerns::Models::Account
5
+
6
+ belongs_to :owner, class_name: UffizziCore::User.name, foreign_key: :owner_id
5
7
  end
@@ -6,7 +6,7 @@ class UffizziCore::UserAccessService
6
6
  delegate :admin_access_to_account?, :developer_access_to_account?, :viewer_access_to_account?,
7
7
  :admin_or_developer_access_to_account?, :any_access_to_account?, :admin_access_to_project?,
8
8
  :developer_access_to_project?, :viewer_access_to_project?, :admin_or_developer_access_to_project?,
9
- :any_access_to_project?, :global_admin?, to: :@user_access_module
9
+ :any_access_to_project?, :global_admin?, :valid_token?, to: :@user_access_module
10
10
 
11
11
  def initialize(user_access_module)
12
12
  @user_access_module = user_access_module
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UffizziCore
4
- VERSION = '2.0.13'
4
+ VERSION = '2.0.14'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uffizzi_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.13
4
+ version: 2.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Thurman
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-11-29 00:00:00.000000000 Z
12
+ date: 2022-12-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aasm