mirror of
https://github.com/grocy/grocy.git
synced 2025-08-15 02:04:38 +00:00
API: Expose permission_hierarchy read only via generic entity interactions (closes #2662)
This commit is contained in:
57
changelog/79_UNRELEASED_xx-xx-xxxx.md
Normal file
57
changelog/79_UNRELEASED_xx-xx-xxxx.md
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
> ⚠️ xxxBREAKING CHANGESxxx
|
||||||
|
|
||||||
|
> ❗ xxxImportant upgrade informationXXX
|
||||||
|
|
||||||
|
> 💡 xxxMinor upgrade informationXXX
|
||||||
|
|
||||||
|
### New Feature: xxxx
|
||||||
|
|
||||||
|
- xxx
|
||||||
|
|
||||||
|
### Stock
|
||||||
|
|
||||||
|
- xxx
|
||||||
|
|
||||||
|
### Shopping list
|
||||||
|
|
||||||
|
- xxx
|
||||||
|
|
||||||
|
### Recipes
|
||||||
|
|
||||||
|
- xxx
|
||||||
|
|
||||||
|
### Meal plan
|
||||||
|
|
||||||
|
- xxx
|
||||||
|
|
||||||
|
### Chores
|
||||||
|
|
||||||
|
- xxx
|
||||||
|
|
||||||
|
### Calendar
|
||||||
|
|
||||||
|
- xxx
|
||||||
|
|
||||||
|
### Tasks
|
||||||
|
|
||||||
|
- xxx
|
||||||
|
|
||||||
|
### Batteries
|
||||||
|
|
||||||
|
- xxx
|
||||||
|
|
||||||
|
### Equipment
|
||||||
|
|
||||||
|
- xxx
|
||||||
|
|
||||||
|
### Userfields
|
||||||
|
|
||||||
|
- xxx
|
||||||
|
|
||||||
|
### General
|
||||||
|
|
||||||
|
- xxx
|
||||||
|
|
||||||
|
### API
|
||||||
|
|
||||||
|
- Exposed the `permission_hierarchy` entity (read only, => `GET /objects/permission_hierarchy`) to provide a permission name / id mapping
|
@@ -1063,6 +1063,7 @@
|
|||||||
"/users/{userId}/permissions": {
|
"/users/{userId}/permissions": {
|
||||||
"get": {
|
"get": {
|
||||||
"summary": "Returns the assigned permissions of the given user",
|
"summary": "Returns the assigned permissions of the given user",
|
||||||
|
"description": "See \"GET /objects/permission_hierarchy\" for a permission name / id mapping",
|
||||||
"tags": [
|
"tags": [
|
||||||
"User management"
|
"User management"
|
||||||
],
|
],
|
||||||
@@ -1113,6 +1114,7 @@
|
|||||||
},
|
},
|
||||||
"post": {
|
"post": {
|
||||||
"summary": "Adds a permission to the given user",
|
"summary": "Adds a permission to the given user",
|
||||||
|
"description": "See \"GET /objects/permission_hierarchy\" for a permission name / id mapping",
|
||||||
"tags": [
|
"tags": [
|
||||||
"User management"
|
"User management"
|
||||||
],
|
],
|
||||||
@@ -1161,6 +1163,7 @@
|
|||||||
},
|
},
|
||||||
"put": {
|
"put": {
|
||||||
"summary": "Replaces the assigned permissions of the given user",
|
"summary": "Replaces the assigned permissions of the given user",
|
||||||
|
"description": "See \"GET /objects/permission_hierarchy\" for a permission name / id mapping",
|
||||||
"tags": [
|
"tags": [
|
||||||
"User management"
|
"User management"
|
||||||
],
|
],
|
||||||
@@ -5906,7 +5909,8 @@
|
|||||||
"quantity_unit_conversions_resolved",
|
"quantity_unit_conversions_resolved",
|
||||||
"recipes_pos_resolved",
|
"recipes_pos_resolved",
|
||||||
"battery_charge_cycles",
|
"battery_charge_cycles",
|
||||||
"product_barcodes_view"
|
"product_barcodes_view",
|
||||||
|
"permission_hierarchy"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"ExposedEntityNoListing": {
|
"ExposedEntityNoListing": {
|
||||||
@@ -5928,7 +5932,8 @@
|
|||||||
"quantity_unit_conversions_resolved",
|
"quantity_unit_conversions_resolved",
|
||||||
"recipes_pos_resolved",
|
"recipes_pos_resolved",
|
||||||
"battery_charge_cycles",
|
"battery_charge_cycles",
|
||||||
"product_barcodes_view"
|
"product_barcodes_view",
|
||||||
|
"permission_hierarchy"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"ExposedEntityNoDelete": {
|
"ExposedEntityNoDelete": {
|
||||||
@@ -5943,7 +5948,8 @@
|
|||||||
"quantity_unit_conversions_resolved",
|
"quantity_unit_conversions_resolved",
|
||||||
"recipes_pos_resolved",
|
"recipes_pos_resolved",
|
||||||
"battery_charge_cycles",
|
"battery_charge_cycles",
|
||||||
"product_barcodes_view"
|
"product_barcodes_view",
|
||||||
|
"permission_hierarchy"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"ExposedEntityEditRequiresAdmin": {
|
"ExposedEntityEditRequiresAdmin": {
|
||||||
|
Reference in New Issue
Block a user