ishapi 0.1.8.201 → 0.1.8.203

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: 4ae973b7eb017636cf7c59d67f2046d502696efda657b252da622ded0e63dd5b
4
- data.tar.gz: 1478df0a622ba3303c932670d86a879a6ff33ee5e0ce2f60314eabce0afe1fe9
3
+ metadata.gz: 3cf5c6e8ec90960c1c97ccb4d195d03c4ce5a7a099dd06c384061cab879cb628
4
+ data.tar.gz: a7f937218aeaa1b3851587efeecbd75647b185ec00dc18f072a36ee8057a39c5
5
5
  SHA512:
6
- metadata.gz: a259d45e18d6f871d895cd7c1ed9b599bee807bc2cc6f8a7292daa6ecec38b4ae7aea1414af4d9270a07b6eb392f3babb19d577ea70a6fd8a11a13005baad092
7
- data.tar.gz: 397b37352e1c81cce619b06ac6ff26aa19cba23ad44acd5b88c0de74010dbff13288fed32cbb714c541de2f05cb0952175eeac3267983f92797a4ee89b5e485f
6
+ metadata.gz: 2cbf0d9c7498fe1d719b3418e196e59395f6426d2c684f0bf62efb18173f1c2cc5cd5919e0f585ff4abac572ebdbbc2daa1404a236c78849082028ebf7e634e5
7
+ data.tar.gz: bd9c48a0c6d48b7821ad56481aaf9478648b0a121bef8fc56dc9eb1a5520ccd5434f4a5a0e0ab739358ee6c4cb9f67be08dc1dd2ddfb26ef9813eeecfa9ffb6b
@@ -5,8 +5,12 @@ class Ishapi::MapsController < Ishapi::ApplicationController
5
5
  before_action :check_profile, only: [ :show ]
6
6
 
7
7
  def show
8
- @location = ::Gameui::Map.where( slug: params[:slug] ).first
9
- @location ||= ::Gameui::Map.find params[:slug]
8
+ if 'self' == params[:slug] # @TODO: constantize _vp_ 2023-01-11
9
+ @location = ::Gameui::Map.where( slug: @current_profile[:email] ).first
10
+ else
11
+ @location = ::Gameui::Map.where( slug: params[:slug] ).first
12
+ @location ||= ::Gameui::Map.find params[:slug]
13
+ end
10
14
  @map = @location.map || @location
11
15
 
12
16
  authorize! :show, @map
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ishapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.201
4
+ version: 0.1.8.203
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-22 00:00:00.000000000 Z
11
+ date: 2023-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails