mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
merge from develop
This commit is contained in:
8
app/forms/projects/project_invite_links/create_form.rb
Normal file
8
app/forms/projects/project_invite_links/create_form.rb
Normal file
@@ -0,0 +1,8 @@
|
||||
class Projects::ProjectInviteLinks::CreateForm < BaseForm
|
||||
attr_accessor :user_id, :project_id, :role, :is_apply
|
||||
|
||||
validates :user_id, :project_id, :role, presence: true
|
||||
validates :role, inclusion: { in: %w(manager developer reporter), message: "请输入正确的权限." }
|
||||
validates :is_apply, inclusion: {in: [true, false], message: "请输入是否需要管理员审核."}
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user