lib/gzr/commands/role/user_add.rb in gazer-0.2.60 vs lib/gzr/commands/role/user_add.rb in gazer-0.3.0
- old
+ new
@@ -36,10 +36,10 @@
@options = options
end
def execute(input: $stdin, output: $stdout)
say_warning(@options) if @options[:debug]
-
+
with_session do
users = query_role_users(@role_id, 'id').collect { |u| u.id }
users += @users
set_role_users(@role_id,users.uniq)
end