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

Fix #1957. Role filter for create new map #1958

Merged
merged 3 commits into from
Jun 26, 2017

Conversation

offtherailz
Copy link
Member

Fix #1957. Now you can confiure the plugin to display only for the allowedRoles in configuration

Fix geosolutions-it#1957. Now you can confiure the plugin to display only for the allowedRoles in configuration
},
contextTypes: {
router: React.PropTypes.object
},
getDefaultProps() {
return {
mapType: "leaflet",
allowedRoles: ["ADMIN", "USER"],
Copy link
Contributor

Choose a reason for hiding this comment

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

but... do we have other roles? maybe we should use groups...

Copy link
Member Author

Choose a reason for hiding this comment

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

By default all logged in, but we can deny for normal users via configuration.Using groups is a good idea for the future.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 80.045% when pulling eb5305c on offtherailz:i1957 into bb6e1e7 on geosolutions-it:master.

@@ -18,7 +18,9 @@ class CreateNewMap extends React.Component {
mapType: PropTypes.string,
onGoToMap: PropTypes.func,
colProps: PropTypes.object,
isLoggedIn: PropTypes.bool
isLoggedIn: PropTypes.bool,
allowedRoles: React.PropTypes.array,
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove React.PropTypes and use PropTypes

@coveralls
Copy link

Coverage Status

Coverage remained the same at 80.025% when pulling 511729c on offtherailz:i1957 into 845c25d on geosolutions-it:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 80.025% when pulling c7a5daa on offtherailz:i1957 into 845c25d on geosolutions-it:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants