Skip to content

Commit e9b98f8

Browse files
authored
check for valid users before submitting (#46)
1 parent 37292a0 commit e9b98f8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

submit.yml.erb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
<%-
2+
3+
err_msg = "You are not a member of the ansysflu group. Please email [email protected] to request access to ANSYS Workbench, or use an external license."
4+
raise(StandardError, err_msg) unless CurrentUser.group_names.include?('ansysflu') || user_license_provider == 'external'
5+
26
nodes = bc_num_slots.blank? ? 1 : bc_num_slots.to_i
37
num_cpus_for_free = 4
48
ppn = if num_cores.blank?

0 commit comments

Comments
 (0)