Skip to content

Commit

Permalink
Update userAssetPermsEditor.es6
Browse files Browse the repository at this point in the history
Disable "Add submissions" when clicking "Edit submissions"
  • Loading branch information
noliveleger authored May 19, 2021
1 parent e7c077a commit 1e943da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jsapp/js/components/permissions/userAssetPermsEditor.es6
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ class UserAssetPermsEditor extends React.Component {
// checking `submissionsEdit` implies having `submissionsAdd` checked
if (stateObj.submissionsEdit) {
stateObj.submissionsAdd = true;
stateObj.submissionsAddDisabled = true;
}

// checking these options implies having `submissionsView` checked
Expand Down

0 comments on commit 1e943da

Please sign in to comment.