---
id: change/bcapps/11129
type: change
title: "#11129 [Quality Management] Refactor permission management"
summary: Quality Management now uses standard permission errors instead of custom table permission checks, simplifying permission management while maintaining administrator-only access controls.
tier: official
language: en
tags:
  - refactor
  - main
  - bc30
  - codeunit qlty. permission mgmt.
  - page qlty. inspection
  - codeunit qlty. inspection - create
  - table qlty. inspection header
  - table qlty. inspection line
  - page qlty. inspection lines
system: development
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:03:02.004Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 3b2f885487df1bd23c4b6213d125261ff885403d
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/11129
    title: "microsoft/BCApps#11129: [Quality Management] Refactor permission management"
    date: "2026-10-05"
    commit: 3b2f885487df1bd23c4b6213d125261ff885403d
    t: null
    quote: Remove custom table permission checks and rely on standard permission errors while preserving administrator-only capabilities.
links:
  learn: []
  objects:
    - object/codeunit/20406
    - object/page/20406
    - object/codeunit/20404
    - object/table/20405
    - object/table/20406
    - object/page/20413
    - object/page/20407
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 11129
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/11129
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-05T12:39:41Z"
author: 6CRIPT
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - SCM
  - "Team: SCM"
change_class: code
change_kind: refactor
behavior_change: true
breaking: false
files:
  count: 11
  additions: 230
  deletions: 526
  al: 7
apps:
  - Quality Management
objects_touched:
  - key: codeunit/20406
    page: codeunit/20406
    type: codeunit
    id: 20406
    name: Qlty. Permission Mgmt.
    app: Quality Management
    status: modified
  - key: page/20406
    page: page/20406
    type: page
    id: 20406
    name: Qlty. Inspection
    app: Quality Management
    status: modified
  - key: codeunit/20404
    page: codeunit/20404
    type: codeunit
    id: 20404
    name: Qlty. Inspection - Create
    app: Quality Management
    status: modified
  - key: table/20405
    page: table/20405
    type: table
    id: 20405
    name: Qlty. Inspection Header
    app: Quality Management
    status: modified
  - key: table/20406
    page: table/20406
    type: table
    id: 20406
    name: Qlty. Inspection Line
    app: Quality Management
    status: modified
  - key: page/20413
    page: page/20413
    type: page
    id: 20413
    name: Qlty. Inspection Lines
    app: Quality Management
    status: modified
  - key: page/20407
    page: page/20407
    type: page
    id: 20407
    name: Qlty. Inspection Subform
    app: Quality Management
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 625864
systems:
  - development
quote: Remove custom table permission checks and rely on standard permission errors while preserving administrator-only capabilities.
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #11129 [Quality Management] Refactor permission management

> Quality Management now uses standard permission errors instead of custom table permission checks, simplifying permission management while maintaining administrator-only access controls.

[Pull request](https://github.com/microsoft/BCApps/pull/11129) · merged into `main` (BC30) on 2026-10-05 by 6CRIPT · 11 files (+230 -526), 7 AL · refactor · tier official · reviewed (checked by Opus)

## What changed

- Removed custom table permission validation logic from Quality Management objects
- Relies on standard Business Central permission error handling instead
- Preserves administrator-only capabilities through maintained access controls
- Simplifies codebase with fewer permission-related checks
- Fixes issue AB#625864 related to permission management
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 20406 "Qlty. Permission Mgmt."](../../objects/codeunit/20406.md), Quality Management: modified
- [Page 20406 "Qlty. Inspection"](../../objects/page/20406.md), Quality Management: modified
- [Codeunit 20404 "Qlty. Inspection - Create"](../../objects/codeunit/20404.md), Quality Management: modified
- [Table 20405 "Qlty. Inspection Header"](../../objects/table/20405.md), Quality Management: modified
- [Table 20406 "Qlty. Inspection Line"](../../objects/table/20406.md), Quality Management: modified
- [Page 20413 "Qlty. Inspection Lines"](../../objects/page/20413.md), Quality Management: modified
- [Page 20407 "Qlty. Inspection Subform"](../../objects/page/20407.md), Quality Management: modified

## Context

- Work items: AB#625864
- Labels: AL: Apps (W1), SCM, Team: SCM
- Systems: development
- From the description: "Remove custom table permission checks and rely on standard permission errors while preserving administrator-only capabilities."

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
