This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
orbit-4-1/app/controllers/orbit_backend_controller.rb

26 lines
609 B
Ruby
Raw Normal View History

class OrbitBackendController < ApplicationController
include OrbitCategory::Categorizing
2013-08-19 10:54:35 +00:00
include OrbitCoreLib::Authorization
2014-02-13 08:13:54 +00:00
include OrbitCoreLib::PermissionUtility
2013-04-26 03:18:57 +00:00
include OrbitTag::Tagging
2012-03-16 03:09:44 +00:00
include AdminHelper
2012-08-23 08:05:14 +00:00
include ApplicationHelper
helper :default_index
layout "back_end"
def get_statuses
status = []
status << 'is_top'
status << 'is_hot'
status << 'is_hidden' unless is_guest?
if @module_app.is_approvable && (is_manager? || is_sub_manager?)
status << 'is_pending'
status << 'is_checked'
status << 'is_rejected'
end
status
end
end