uffizzi_core 2.4.3 → 2.4.4

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: 9ddd0b04cdd1184aac854bda590b5974a82ab9e487372436d2d324fdf0891230
4
- data.tar.gz: 227ea9de7c5e0a165a81794e35dca890d07975dedfa75eff818381c3647f4cf6
3
+ metadata.gz: fe4138139998d00870f71519ae7d1a04a0e6e67679f3f9bddbd7cd40bb12ac8b
4
+ data.tar.gz: f9a83213e9471f2521b8a49bb387357bd51c736a8b8a84bc93773d41c779cd17
5
5
  SHA512:
6
- metadata.gz: 742f5a2aac4a9968eb63eca265d56402e5ed9b56b43a4a48541f67c6408aed38334b5753ea26136bef84a2dbba10d20d0ddcc6f8b86c8487831c66ac30f2760d
7
- data.tar.gz: eead9c79725fca592f3d7ecdf4ae4df12a512722d36603200fc20bfb3b34ad46a81c9ace30ff68977195841d6d48ce678107fb61fd9bf5ca1271ad873c5ecd65
6
+ metadata.gz: 50ca23705bf0074517eceaf9627b79a5f7b9bc1bd36d05badb516d88a8910b3b76d7abf34427cd75a78a6443e75a03cab6f4e1a6f6243d0778162d1a7f8b6dbb
7
+ data.tar.gz: a294d76a3709fb1030e3fb7acd6539d9b255b2543419fd6fc96903f95b093287a255a50929a2740d69f34db241159b50818b278b36a521f4618f1850a09ed905
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module UffizziCore::Api::Cli::V1::AccountsControllerModule
4
+ def update; end
5
+ end
@@ -3,6 +3,8 @@
3
3
  # @resource Project
4
4
 
5
5
  class UffizziCore::Api::Cli::V1::AccountsController < UffizziCore::Api::Cli::V1::ApplicationController
6
+ include UffizziCore::Api::Cli::V1::AccountsControllerModule
7
+
6
8
  before_action :authorize_uffizzi_core_api_cli_v1_accounts
7
9
 
8
10
  # Get accounts of current user
@@ -8,4 +8,8 @@ class UffizziCore::Api::Cli::V1::AccountsPolicy < UffizziCore::ApplicationPolicy
8
8
  def show?
9
9
  context.user_access_module.any_access_to_account?(context.user, context.account)
10
10
  end
11
+
12
+ def update?
13
+ false
14
+ end
11
15
  end
data/config/routes.rb CHANGED
@@ -51,7 +51,7 @@ UffizziCore::Engine.routes.draw do
51
51
  resource :session, only: ['create']
52
52
  end
53
53
 
54
- resources :accounts, only: ['show'], param: :name
54
+ resources :accounts, only: ['show', 'update'], param: :name
55
55
 
56
56
  resources :accounts, only: ['index'] do
57
57
  scope module: :accounts do
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UffizziCore
4
- VERSION = '2.4.3'
4
+ VERSION = '2.4.4'
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.4.3
4
+ version: 2.4.4
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: 2023-12-18 00:00:00.000000000 Z
12
+ date: 2023-12-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aasm
@@ -777,6 +777,7 @@ files:
777
777
  - app/contexts/uffizzi_core/project/cluster_context.rb
778
778
  - app/contexts/uffizzi_core/project_context.rb
779
779
  - app/contexts/uffizzi_core/webhooks_context.rb
780
+ - app/controller_modules/uffizzi_core/api/cli/v1/accounts_controller_module.rb
780
781
  - app/controller_modules/uffizzi_core/api/cli/v1/projects/clusters_controller_module.rb
781
782
  - app/controller_modules/uffizzi_core/api/cli/v1/projects/deployments_controller_module.rb
782
783
  - app/controller_modules/uffizzi_core/api/cli/v1/projects_controller_module.rb