directus/v6-archive

Error while updating records with relations and group permissions

开放

#7 创建于 2018年10月25日

 (0 条评论) (0 个反应) (0 位负责人)JavaScript (4 个派生)auto 404
3. MajorInterfacehelp wantedv6

仓库指标

星标
 (2 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

From directus created by nithinga : directus/directus#1658

Version Info

  • Directus version and branch: version/6.4 - c6fb4336732530c8db58b76124262e027e191175
  • PHP version: 7.1
  • MySQL version: 5.7
  • Web server: Apache
  • OS name and version: Docker ( Ubuntu )

Expected Behavior

When adding the record with relations, it should be added properly.

Actual Behavior

When adding the record with relations, it gives the given error in screenshot.

Steps to Reproduce

  1. Make 2 tables, eg: topics and books
  2. Make 2 groups, topic-manager and book-manager. Give permissions like book-manger can enter book details under a topic, but he cannot edit, delete or add topics.
  3. Login as book-manager and try to enter a new book detail. We will get the given screenshot error. This happends due to Directus trying to update all the relational tables, but donnot have permission. :( what is the need of trying to again update all relational tables ?

Logs or Screenshots

screenshot from 2017-07-05 14 48 22

贡献者指南