mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 10:45:58 +02:00
Refactor user to admin and api user
This commit is contained in:
parent
f3215680d5
commit
037cb57e00
34 changed files with 551 additions and 551 deletions
|
@ -5,9 +5,9 @@ module Shared::UserStamper
|
|||
# return false if obj.nil? || !obj.has_attribute?(:created_by_id && :updated_by_id)
|
||||
|
||||
# if obj.new_record?
|
||||
# obj.created_by_id = current_api_user.id
|
||||
# obj.created_by_id = current_user.id
|
||||
# else
|
||||
# obj.updated_by_id = current_api_user.id
|
||||
# obj.updated_by_id = current_user.id
|
||||
# end
|
||||
|
||||
# true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue