Commit 09204a1
committed
fix(admin-delegation): display delegated section in common settings for non-admin
IDeclarativeSettingsForm can't be delegated and can be shown only to admin.
Lets not load IDeclarativeSettings for non admins.
Otherwise we get "Access forbidden" while displaying /settings/admin
and prevent to show delegated sections to non admin like:
Background jobs OCA\Settings\Settings\Admin\Server
Email server OCA\Settings\Settings\Admin\Mail
Signed-off-by: Misha M.-Kupriyanov <kupriyanov@strato.de>1 parent fdbd39a commit 09204a1
1 file changed
Lines changed: 10 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
140 | | - | |
| 139 | + | |
141 | 140 | | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
146 | 150 | | |
147 | 151 | | |
148 | 152 | | |
| |||
0 commit comments