mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-07 21:55:20 +08:00
Merge pull request #8648 from artoscinote/ma_SCI_12113
Fix public project role propagation [SCI-12113]
This commit is contained in:
commit
4adced509c
1 changed files with 1 additions and 0 deletions
|
@ -126,6 +126,7 @@ class ProjectsController < ApplicationController
|
|||
|
||||
default_public_user_role_name = nil
|
||||
if !@project.visibility_changed? && @project.default_public_user_role_id_changed?
|
||||
@project.visibility_will_change! # triggers assignment sync
|
||||
default_public_user_role_name = UserRole.find(project_params[:default_public_user_role_id]).name
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue