Skip to content

Commit

Permalink
check for valid users before submitting (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
johrstrom authored Apr 23, 2024
1 parent 37292a0 commit e9b98f8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions submit.yml.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<%-

err_msg = "You are not a member of the ansysflu group. Please email oschelp@osc.edu to request access to ANSYS Workbench, or use an external license."
raise(StandardError, err_msg) unless CurrentUser.group_names.include?('ansysflu') || user_license_provider == 'external'

nodes = bc_num_slots.blank? ? 1 : bc_num_slots.to_i
num_cpus_for_free = 4
ppn = if num_cores.blank?
Expand Down

0 comments on commit e9b98f8

Please sign in to comment.