Skip to content

Commit

Permalink
feat: RBAC service removed - it's pulled out into tymly-rbac-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
jezhiggins committed Aug 23, 2018
1 parent 461a618 commit 137e9c2
Show file tree
Hide file tree
Showing 34 changed files with 4 additions and 1,250 deletions.
139 changes: 0 additions & 139 deletions lib/plugin/components/services/rbac/apply-default-blueprint-docs.js

This file was deleted.

34 changes: 0 additions & 34 deletions lib/plugin/components/services/rbac/apply-default-roles.js

This file was deleted.

Empty file.
5 changes: 0 additions & 5 deletions lib/plugin/components/services/rbac/doc/index.js

This file was deleted.

25 changes: 0 additions & 25 deletions lib/plugin/components/services/rbac/find-user-roles.js

This file was deleted.

133 changes: 0 additions & 133 deletions lib/plugin/components/services/rbac/index.js

This file was deleted.

36 changes: 0 additions & 36 deletions lib/plugin/components/services/rbac/refresh-index/index.js

This file was deleted.

6 changes: 2 additions & 4 deletions lib/plugin/components/services/statebox/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ const _ = require('lodash')
const cls = require('cls-hooked')
const session = cls.createNamespace('statebox')

const ENABLE_RBAC = false

function promiseOrCallback (p, callback) {
if (callback) {
p
Expand Down Expand Up @@ -208,8 +206,8 @@ class StateboxService {
} // processIfAuthorised

authorisationCheck (userId, stateMachineName, executionOptions, action) {
if (!ENABLE_RBAC) {
return [true] // STUB!
if (!this.services.rbac) {
return [true] // No RBAC service installed. Just continue.
}

return this.doAuthorisationCheck(userId, stateMachineName, executionOptions, action)
Expand Down
Loading

0 comments on commit 137e9c2

Please sign in to comment.