(app)
| 189 | }) |
| 190 | |
| 191 | const Role = (app) => { |
| 192 | const { _t } = app.context |
| 193 | return { |
| 194 | type: 'object', |
| 195 | name: 'auth_role', |
| 196 | resource: 'auth/role', |
| 197 | title: _t('Role'), |
| 198 | icon: 'group', |
| 199 | properties: { |
| 200 | name: { |
| 201 | title: _t('Name'), |
| 202 | type: 'string' |
| 203 | }, |
| 204 | permissions: { |
| 205 | title: _t('Permission'), |
| 206 | type: 'array', |
| 207 | items: Permission(app) |
| 208 | } |
| 209 | }, |
| 210 | searchFields: [ 'name' ], |
| 211 | ui: { showMenu: false } |
| 212 | } |
| 213 | } |
| 214 | |
| 215 | const User = (app) => { |
| 216 | const { _t } = app.context |
no test coverage detected