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

allow non-admin users to PUT/POST to create resources #45

Closed
wants to merge 2 commits into from
Closed

allow non-admin users to PUT/POST to create resources #45

wants to merge 2 commits into from

Conversation

acoburn
Copy link
Contributor

@acoburn acoburn commented Nov 1, 2015

if (exists.test(path) || path.isRoot()) {
LOGGER.debug("findRolesForPath: {}", path.getString());
return nodeService.find(session, path.toString());
} else {
Copy link
Member

Choose a reason for hiding this comment

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

No else necessary due to the return on line:111.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you mean?

if (condition) {
    return first;
}
return other;

I prefer my formulation, but I don't feel strongly about it.

Copy link
Member

Choose a reason for hiding this comment

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

That is what I mean... and I am looking out for @ajs6f here, as he seems to have a strong preference.

@acoburn
Copy link
Contributor Author

acoburn commented Nov 1, 2015

@awoods the format of the conditional block has been changed.

@awoods
Copy link
Member

awoods commented Nov 1, 2015

Resolved with: 26d1fcc

@awoods awoods closed this Nov 1, 2015
@acoburn acoburn deleted the fcrepo-1809 branch July 21, 2016 16:13
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.

None yet

2 participants