Skip to content

Commit a2edb3d

Browse files
committed
We want to know if a logged in user in "iris" is admin without needing to look it up every time. This will, for now, be used when determining if we want to mount the karafka web-ui engine in the routes.
1 parent b002541 commit a2edb3d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/controllers/kracken/sessions_controller.rb

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ def create
88
@user = user_class.find_or_create_from_auth_hash(auth_hash)
99
session[:user_id] = @user.id
1010
session[:user_uid] = @user.uid
11+
session[:is_admin] = @user.admin
1112
session[:user_cache_key] = Kracken::SessionManager.get(@user.uid)
1213
session[:token_expires_at] = Time.zone.at(auth_hash[:credentials][:expires_at])
1314

0 commit comments

Comments
 (0)