mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-16 06:06:56 +08:00
11 lines
256 B
Ruby
11 lines
256 B
Ruby
# frozen_string_literal: true
|
|
|
|
class SoftLockedRepository < Repository
|
|
# this is for repositories only editable via API
|
|
|
|
enum permission_level: Extends::SHARED_OBJECTS_PERMISSION_LEVELS.except(:shared_write)
|
|
|
|
def shareable_write?
|
|
false
|
|
end
|
|
end
|