We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
10.5.0
When a user or group has multiple access permissions on an object, the permissions are incorrectly updated when saving permission_attributes.
permission_attributes
If the permissions on an object are:
{:name=>"[email protected]", :type=>"person", :access=>"edit"}
{:name=>"[email protected]", :type=>"person", :access=>"read"}
And the permissions attributes are set to the same the result is two permissions both with read access.
read
Should maintain both access levels for the user or group.
The first access level is overwritten by the access level of the last permission passed to permission_attributes=.
permission_attributes=
fs = FileSet.create fs.permissions_attributes = [{:name=>"[email protected]", :type=>"person", :access=>"edit"}, {:name=>"[email protected]", :type=>"person", :access=>"read"}] fs.save fs.permissions_attributes = [{:name=>"[email protected]", :type=>"person", :access=>"edit"}, {:name=>"[email protected]", :type=>"person", :access=>"read"}] fs.save
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Descriptive summary
10.5.0
When a user or group has multiple access permissions on an object, the permissions are incorrectly updated when saving
permission_attributes
.Rationale
If the permissions on an object are:
{:name=>"[email protected]", :type=>"person", :access=>"edit"}
{:name=>"[email protected]", :type=>"person", :access=>"read"}
And the permissions attributes are set to the same the result is two permissions both with
read
access.Expected behavior
Should maintain both access levels for the user or group.
Actual behavior
The first access level is overwritten by the access level of the last permission passed to
permission_attributes=
.Steps to reproduce the behavior
The text was updated successfully, but these errors were encountered: