Skip to content
New issue

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

Fixed #1011 : fixed several bugs on permission editor #1023

Merged
merged 1 commit into from
Oct 5, 2016

Conversation

MV88
Copy link
Contributor

@MV88 MV88 commented Sep 23, 2016

  • Some translations are missing and they also should be internationalized.
  • If the user isn't the owner of the map --> hide permission editor
  • The groups spinner should turn off if no available groups is left

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 80.053% when pulling dc09bb9 on MV88:iss1011 into 0ca3ade on geosolutions-it:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.04%) to 80.039% when pulling 87d441d on MV88:iss1011 into 0ca3ade on geosolutions-it:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.04%) to 80.039% when pulling 9a7c4a7 on MV88:iss1011 into 0ca3ade on geosolutions-it:master.

@@ -123,7 +123,7 @@ const MetadataModal = React.createClass({
},
componentDidUpdate(prevProps) {
if (this.props.show && !prevProps.show) {
if (this.props.displayPermissionEditor) {
if (this.props.displayPermissionEditor && this.props.user.name === this.props.map.owner) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ADMIN role users should be able to edit map permissions even if they are not owners

@@ -157,7 +157,7 @@ const MetadataModal = React.createClass({
this.refs.thumbnail.updateThumbnail(this.props.map, metadata);
},
renderPermissionEditor() {
if (this.props.displayPermissionEditor) {
if (this.props.displayPermissionEditor && this.props.user.name === this.props.map.owner) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above, ADMIN users must be able to edit permissions

@@ -30,18 +30,26 @@ describe('This test for MetadataModal', () => {
expect(metadataModalItem).toExist();

const metadataModalItemDom = ReactDOM.findDOMNode(metadataModalItem);
expect(metadataModalItemDom).toNotExist();
expect(metadataModalItemDom).toExist();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please test that it is not visible

@coveralls
Copy link

Coverage Status

Coverage increased (+0.5%) to 80.599% when pulling 60d62e6 on MV88:iss1011 into 0ca3ade on geosolutions-it:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) to 80.496% when pulling bb9ac64 on MV88:iss1011 into 0ed6a09 on geosolutions-it:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) to 80.505% when pulling bb9ac64 on MV88:iss1011 into 0ed6a09 on geosolutions-it:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 80.599% when pulling db74916 on MV88:iss1011 into 0ed6a09 on geosolutions-it:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 80.599% when pulling db74916 on MV88:iss1011 into 0ed6a09 on geosolutions-it:master.

@Gnafu Gnafu merged commit c0ac28b into geosolutions-it:master Oct 5, 2016
@MV88 MV88 mentioned this pull request Oct 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants