Skip to content

Commit

Permalink
SRAM: all users are internal when SRAM is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
lwesterhof committed Nov 14, 2023
1 parent fac2de9 commit f4da80c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -975,6 +975,10 @@ def rule_group_check_external_user(ctx, username):
:returns: String indicating if user is external ('1': yes, '0': no)
"""
if config.enable_sram:
# All users are internal when SRAM is enabled.
return '0'

if yoda_names.is_internal_user(username):
return '0'
return '1'
Expand Down

0 comments on commit f4da80c

Please sign in to comment.