Commit 5d82aab
authored
[php/libraries/UserPermissions.class.inc] Fix editing of users when a module is disabled (#7754)
if set one module as "No" in the module_manager, user account module can't edit the user ( 500 error). The query is incorrectly including inactivated modules, which causes an exception when trying to call getLongName() on the module.1 parent c4b7b6f commit 5d82aab
File tree
2 files changed
+16
-21
lines changed- php/libraries
- test/unittests
2 files changed
+16
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
305 | | - | |
306 | | - | |
| 305 | + | |
| 306 | + | |
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
311 | | - | |
| 311 | + | |
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
188 | | - | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
189 | 190 | | |
190 | 191 | | |
191 | | - | |
192 | | - | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
193 | 195 | | |
| 196 | + | |
194 | 197 | | |
195 | 198 | | |
196 | 199 | | |
| |||
1127 | 1130 | | |
1128 | 1131 | | |
1129 | 1132 | | |
1130 | | - | |
1131 | | - | |
1132 | | - | |
1133 | | - | |
1134 | | - | |
1135 | | - | |
1136 | | - | |
1137 | | - | |
1138 | | - | |
| 1133 | + | |
1139 | 1134 | | |
1140 | 1135 | | |
1141 | 1136 | | |
1142 | 1137 | | |
1143 | | - | |
| 1138 | + | |
1144 | 1139 | | |
1145 | 1140 | | |
1146 | | - | |
| 1141 | + | |
1147 | 1142 | | |
1148 | 1143 | | |
1149 | 1144 | | |
1150 | 1145 | | |
1151 | | - | |
| 1146 | + | |
1152 | 1147 | | |
1153 | 1148 | | |
1154 | | - | |
| 1149 | + | |
1155 | 1150 | | |
1156 | 1151 | | |
1157 | 1152 | | |
1158 | 1153 | | |
1159 | | - | |
| 1154 | + | |
1160 | 1155 | | |
1161 | 1156 | | |
1162 | 1157 | | |
| |||
0 commit comments