Dears,
Is Resource to Resource relation limited to super users. When I try to
create a relation between two resources with Superuser privilege, I was
able to create one. And when I tried to create same with a user having
both privileges "Resource Reviewer" and "Resource Editor", it did not
create any. Inspecting for the error it showed error at line 243 in
related-resources-manager.js.
save: function(candidateIds,
relationshipProperties, relationshipIds) {
this.defaultRelationshipType =
options.relationship_types.default;
if
(!relationshipProperties.relationship_type) {
relationshipProperties.relationship_type =
options.relationship_types.default;
}
var payload = {
relationship_properties:
relationshipProperties,
instances_to_relate: candidateIds,
root_resourceinstanceid:
resourceinstanceid,
relationship_ids: relationshipIds
};
$.ajax({
url: arches.urls.related_resources,
data: payload,
context: this,
type: 'POST',
dataType: 'json'
})
.done(function(data) {
this.parse(data, self);
})
* .fail(function(data) {
console.log('Related resource
request failed', data);
});*
},
If anyone has encountered and resolved this issue, please suggest.
Regards,
Ashish
--
-- To post, send email to [email protected]. To unsubscribe, send
email to [email protected]. For more information,
visit https://groups.google.com/d/forum/archesproject?hl=en
---
You received this message because you are subscribed to the Google Groups "Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/archesproject/5F5A4625.3010108%40gmail.com.