Implement access control based on group membership

Created on 8 May 2025, 3 days ago

Problem/Motivation

A user should only have access to those farm assets and logs that are assigned to the farm organization that is related to the group that the user is a member of.

Proposed resolution

  1. Create a group for each existing organization when the module is installed. Add the organization to the group.
  2. Add/delete a group when a farm organization is added/deleted.
  3. Add an access control handler that allows the user access to the assets and logs assigned to the farm that the user is related to via the group. Deny access to other assets and logs.
  4. Add views filter to filter out results that the user does not have access to by reason of the group that the user is a member of.
Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇪🇸Spain Peacog

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024