remoteStorage OAuth #109

Merged
raucao merged 24 commits from feature/rs-oauth into master 2023-08-04 08:55:29 +00:00
Showing only changes of commit 4c6c81171b - Show all commits

View File

@ -10,7 +10,7 @@ class RemoteStorageAuthorization < ApplicationRecord
scope :expired, -> { where(expire_at: ..(DateTime.now)) }
after_initialize do |a|
a.permisisons = [] if a.permissions == nil
a.permissions = [] if a.permissions == nil
end
before_create :generate_token