Skip to content
This repository has been archived by the owner on Jun 27, 2020. It is now read-only.

Commit

Permalink
Merge pull request #220 from duke-libraries/roles-cleanup
Browse files Browse the repository at this point in the history
Cleans up some detritus in the roles code
  • Loading branch information
dchandekstark committed Apr 22, 2015
2 parents 9e576b5 + ad8e8f6 commit 64641a0
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 39 deletions.
3 changes: 1 addition & 2 deletions lib/ddr/auth/roles.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ module Roles
autoload :RoleType
autoload :RoleTypes
autoload :Query
autoload :Scopes

include RoleTypes

RESOURCE_SCOPE = "resource"
POLICY_SCOPE = "policy"
SCOPES = [RESOURCE_SCOPE, POLICY_SCOPE]
SCOPES = [RESOURCE_SCOPE, POLICY_SCOPE].freeze

class << self
def type_map
Expand Down
27 changes: 0 additions & 27 deletions lib/ddr/auth/roles/role.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,6 @@ class Role < ActiveTriples::Resource

DEFAULT_SCOPE = Roles::RESOURCE_SCOPE

# TYPES = {
# "Curator" => {
# permissions: [:read, :download, :add_children, :edit, :replace, :arrange, :grant].freeze
# }.freeze,

# "Editor" => {
# permissions: [:read, :download, :add_children, :edit, :replace, :arrange].freeze
# }.freeze,

# "MetadataEditor" => {
# permissions: [:read, :download, :edit].freeze
# }.freeze,

# "Contributor" => {
# permissions: [:read, :add_children].freeze
# }.freeze,

# "Downloader" => {
# permissions: [:read, :download].freeze
# }.freeze,

# "Viewer" => {
# permissions: [:read].freeze
# }.freeze

# }.freeze

include RDF::Isomorphic
include Hydra::Validations

Expand Down
10 changes: 0 additions & 10 deletions lib/ddr/auth/roles/scopes.rb

This file was deleted.

File renamed without changes.

0 comments on commit 64641a0

Please sign in to comment.