plugins/object_storage/app/controllers/object_storage/application_controller.rb
# This is the base class of all controllers in this plugin. Only put code in here that is shared across controllers.
This is the base class of all controllers in this plugin. Only put code in here that is shared across controllers.
This is the base class of all controllers in this plugin . Only put code in here that is shared across controllers .
def load_quota_data
      @quota_data = []
      if current_user.is_allowed?("access_to_project")
        @quota_data = services.resource_management.quota_data(
          current_user.domain_id || current_user.project_domain_id,
          current_user.project_id,[
            { service_type: :'object-store', resource_name: :capacity }
          ])
      end
    end
def load_quota_data @quota_data = [ ] if current_user . is_allowed? ( "access_to_project" ) @quota_data = services . resource_management . quota_data ( current_user . domain_id || current_user . project_domain_id , current_user . project_id , [ { service_type : :' object-store ' , resource_name : :capacity } ] ) end end
This is the base class of all controllers in this plugin.
This is the base class of all controllers in this plugin .