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.
2013-08-09 07:07:05 +00:00
|
|
|
class OrbitMemberController < ApplicationController
|
|
|
|
include OrbitCategory::Categorizing
|
2013-08-19 10:54:35 +00:00
|
|
|
include OrbitCoreLib::Authorization
|
2013-08-09 07:07:05 +00:00
|
|
|
include OrbitTag::Tagging
|
|
|
|
include AdminHelper
|
|
|
|
include ApplicationHelper
|
|
|
|
|
|
|
|
helper :default_index
|
|
|
|
|
|
|
|
layout "member"
|
|
|
|
|
|
|
|
def get_statuses
|
|
|
|
status = []
|
|
|
|
status << 'is_top'
|
|
|
|
status << 'is_hot'
|
|
|
|
status << 'is_hidden' unless is_guest?
|
2013-11-13 01:53:21 +00:00
|
|
|
if @module_app.is_approvable && (is_manager? || is_sub_manager?)
|
2013-08-09 07:07:05 +00:00
|
|
|
status << 'is_pending'
|
|
|
|
status << 'is_checked'
|
|
|
|
status << 'is_rejected'
|
|
|
|
end
|
|
|
|
status
|
|
|
|
end
|
|
|
|
end
|