Skip to content

Commit

Permalink
allow for configurable facl domain (#2398)
Browse files Browse the repository at this point in the history
  • Loading branch information
johrstrom authored Dec 1, 2022
1 parent b040e2f commit 99219f2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/dashboard/app/models/permission.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ def destroy
def acl_entry(principle)
flags = []
flags << :g if group
OodSupport::ACLs::Nfs4Entry.new(type: :A, flags: flags, principle: principle.to_s, domain: 'osc.edu',
domain = Configuration.facl_domain
OodSupport::ACLs::Nfs4Entry.new(type: :A, flags: flags, principle: principle.to_s, domain: domain,
permissions: [:r, :x])
end

Expand Down
1 change: 1 addition & 0 deletions apps/dashboard/config/configuration_singleton.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def string_configs
{
:module_file_dir => nil,
:user_settings_file => '.ood',
:facl_domain => nil,
}.freeze
end

Expand Down
1 change: 1 addition & 0 deletions apps/dashboard/test/fixtures/config/ondemand.d/string.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
module_file_dir: 'string from file'
user_settings_file: 'string from file'
facl_domain: 'string from file'

0 comments on commit 99219f2

Please sign in to comment.