mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 17:08:34 +00:00
Set user role while creating a new app
This commit is contained in:
parent
9d4407958f
commit
829944df89
1 changed files with 1 additions and 0 deletions
|
|
@ -34,6 +34,7 @@ class AppsController < ApplicationController
|
|||
current_version: AppVersion.new(name: 'v0'),
|
||||
user: @current_user
|
||||
})
|
||||
AppUser.create(app: @app, user: @current_user, role: 'admin')
|
||||
end
|
||||
|
||||
def show
|
||||
|
|
|
|||
Loading…
Reference in a new issue