CleverStack/clever-roles

View on GitHub
schema/seedData.json

Summary

Maintainability
Test Coverage
{
  "RoleModel": [
    {
      "AccountId":        null,
      "systemRole":       true,
      "name":             "Admin",
      "description":      "Default (System) Administration Role, this gives any user (assigned this role) privileges to everything.",
      "associations": {
        "PermissionModel": [
          { "action": "Account.list",             "AccountId": null },
          { "action": "Account.view",             "AccountId": null },
          { "action": "Account.create",           "AccountId": null },
          { "action": "Account.edit",             "AccountId": null },
          { "action": "Account.delete",           "AccountId": null },
          { "action": "Role.list",                "AccountId": null },
          { "action": "Role.view",                "AccountId": null },
          { "action": "Role.create",              "AccountId": null },
          { "action": "Role.edit",                "AccountId": null },
          { "action": "Role.delete",              "AccountId": null },
          { "action": "Permission.list",          "AccountId": null },
          { "action": "Permission.view",          "AccountId": null },
          { "action": "Permission.create",        "AccountId": null },
          { "action": "Permission.edit",          "AccountId": null },
          { "action": "Permission.delete",        "AccountId": null },
          { "action": "User.list",                "AccountId": null },
          { "action": "User.view",                "AccountId": null },
          { "action": "User.create",              "AccountId": null },
          { "action": "User.edit",                "AccountId": null },
          { "action": "User.delete",              "AccountId": null },
          { "action": "User.assignRole",          "AccountId": null }
        ]
      }
    }
  ],
  "PermissionModel": [
    {
      "AccountId":        null,
      "systemPermission": true,
      "action":           "Account.view",
      "description":      "Allows the user to view details about their account/s."
    },
    {
      "AccountId":        null,
      "systemPermission": true,
      "action":           "Account.create",
      "description":      "Allows the user to create a new account/s."
    },
    {
      "AccountId":        null,
      "systemPermission": true,
      "action":           "Account.edit",
      "description":      "Allows the user to update their account/s."
    },
    {
      "AccountId":        null,
      "systemPermission": true,
      "action":           "Account.delete",
      "description":      "Allows the user to delete their account/s."
    },
    {
      "AccountId":        null,
      "systemPermission": true,
      "action":           "User.list",
      "description":      "Allows the user to view a list of user/s within their account/s."
    },
    {
      "AccountId":        null,
      "systemPermission": true,
      "action":           "User.view",
      "description":      "Allows the user to view details about any user/s within their account/s."
    },
    {
      "AccountId":        null,
      "systemPermission": true,
      "action":           "User.create",
      "description":      "Allows the user to create a new user for any of their account/s."
    },
    {
      "AccountId":        null,
      "systemPermission": true,
      "action":           "User.edit",
      "description":      "Allows the user to update any user/s within their account/s."
    },
    {
      "AccountId":        null,
      "systemPermission": true,
      "action":           "User.delete",
      "description":      "Allows the user to delete any user/s within their account/s."
  },
    {
      "AccountId":        null,
      "systemPermission": true,
      "action":           "User.assignRole",
      "description":      "Allows the user to assign any user/s within their account to any role/s within their account/s."
    },
    {
      "AccountId":        null,
      "systemPermission": true,
      "action":           "Permission.list",
      "description":      "Allows the user to view a list of permission/s within their account/s."
    },
    {
      "AccountId":        null,
      "systemPermission": true,
      "action":           "Permission.view",
      "description":      "Allows the user to view details about any permission/s within their account/s."
    },
    {
      "AccountId":        null,
      "systemPermission": true,
      "action":           "Permission.create",
      "description":      "Allows the user to create a new permission for any of their account/s."
    },
    {
      "AccountId":        null,
      "systemPermission": true,
      "action":           "Permission.edit",
      "description":      "Allows the user to update any permission/s within their account/s."
    },
    {
      "AccountId":        null,
      "systemPermission": true,
      "action":           "Permission.delete",
      "description":      "Allows the user to delete any permission/s within their account/s."
    },
    {
      "AccountId":        null,
      "systemPermission": true,
      "action":           "Permission.assignRole",
      "description":      "Allows the user to assign any permission/s within their account to any role/s within their account/s."
    },
    {
      "AccountId":        null,
      "systemPermission": true,
      "action":           "Role.list",
      "description":      "Allows the user to view a list of role/s within their account/s."
    },
    {
      "AccountId":        null,
      "systemPermission": true,
      "action":           "Role.view",
      "description":      "Allows the user to view details about any role/s within their account/s."
    },
    {
      "AccountId":        null,
      "systemPermission": true,
      "action":           "Role.create",
      "description":      "Allows the user to create a new role for any of their account/s."
    },
    {
      "AccountId":        null,
      "systemPermission": true,
      "action":           "Role.edit",
      "description":      "Allows the user to update any role/s within their account/s."
    },
    {
      "AccountId":        null,
      "systemPermission": true,
      "action":           "Role.delete",
      "description":      "Allows the user to delete any role/s within their account/s."
    }
  ]
}