2018-11-16 19:37:17 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-05-10 11:15:20 -04:00
|
|
|
module Gitlab
|
|
|
|
module ImportExport
|
2020-03-05 13:08:19 -05:00
|
|
|
class Error < StandardError
|
|
|
|
def self.permission_error(user, importable)
|
|
|
|
self.new(
|
|
|
|
"User with ID: %s does not have required permissions for %s: %s with ID: %s" %
|
|
|
|
[user.id, importable.class.name, importable.name, importable.id]
|
|
|
|
)
|
|
|
|
end
|
|
|
|
end
|
2016-05-10 11:15:20 -04:00
|
|
|
end
|
2016-05-12 05:29:06 -04:00
|
|
|
end
|