api/services/PermissionService.js
function(options) {
    var user = options.user.email || options.user.username
    return [
      'User', user, 'is not permitted to', options.method, options.model.name
    ].join(' ');
  }
function(options) {
    var user = options.user.email || options.user.username
    return [
      'User', user, 'is not permitted to', options.method, options.model.name
    ].join(' ');
  }
function ( options ) { var user = options . user . email || options . user . username return [ 'User' , user , 'is not permitted to' , options . method , options . model . name ] . join ( ' ' ) ; }
Build an error message
Build an error message