lib/sugarcrm/module_methods.rb in sugarcrm-0.7.7 vs lib/sugarcrm/module_methods.rb in sugarcrm-0.7.8
- old
+ new
@@ -13,6 +13,11 @@
@@modules
end
def self.modules=(modules)
@@modules = modules
end
+
+ def self.current_user
+ SugarCRM::User.find_by_user_name(connection.user)
+ end
+
end
\ No newline at end of file