Commit 073e8b67 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Update ldap user permissions on each login

parent 7fe779b8
......@@ -21,6 +21,9 @@ class OmniauthCallbacksController < Devise::OmniauthCallbacksController
if @user.persisted?
@user.remember_me = true
end
Gitlab::LDAP::Access.new.update_permissions(@user)
sign_in_and_redirect @user
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment