Editable content #229

Merged
greg merged 15 commits from feature/186-content_editing into master 2025-05-30 11:14:51 +00:00
Showing only changes of commit 55c63be9e2 - Show all commits

View File

@ -131,7 +131,7 @@ class User < ApplicationRecord
end end
def is_admin? def is_admin?
admin ||= if admin = Devise::LDAP::Adapter.get_ldap_param(self.cn, :admin) @admin ||= if admin = Devise::LDAP::Adapter.get_ldap_param(self.cn, :admin)
!!admin.first !!admin.first
else else
false false