MCPcopy Create free account
hub / github.com/sshwsfc/xadmin / Role

Function Role

packages/xadmin-auth/src/models.js:191–213  ·  view source on GitHub ↗
(app)

Source from the content-addressed store, hash-verified

189})
190
191const 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
215const User = (app) => {
216 const { _t } = app.context

Callers 2

UserFunction · 0.85
models.jsFile · 0.85

Calls 2

PermissionFunction · 0.85
_tFunction · 0.50

Tested by

no test coverage detected