app/helpers/cms/fortress/application_helper.rb in cms-fortress-1.3.0.rc2 vs app/helpers/cms/fortress/application_helper.rb in cms-fortress-1.3.0.rc3
- old
+ new
@@ -1,9 +1,17 @@
require 'cms/fortress/settings'
require 'cms/fortress/error'
module Cms::Fortress::ApplicationHelper
+ def current_site
+ @site.label
+ end
+
+ def super_user?
+ current_cms_fortress_user && current_cms_fortress_user.type.eql?(:super_user)
+ end
+
def dashboard_widget(title, collection)
render partial: "cms/fortress/shared/dashboard_widget", locals: {title: title, collection: collection}
end
def role_display(command)