Hi Ashish - 

I haven’t seen this issue, but it looks like a bug. Can you copy your 
description and error message and put it in an arches ticket? 

https://github.com/archesproject/arches/issues/new/choose 
<https://github.com/archesproject/arches/issues/new/choose>

Thanks!

Cyrus


> On Sep 10, 2020, at 8:28 AM, Ashish Karmacharya <[email protected]> 
> wrote:
> 
> 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 
> <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] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/archesproject/5F5A4625.3010108%40gmail.com 
> <https://groups.google.com/d/msgid/archesproject/5F5A4625.3010108%40gmail.com?utm_medium=email&utm_source=footer>.

-- 
-- 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/CD0C08B4-D2B9-4621-8DDC-3383B0873378%40gmail.com.

Reply via email to