1 class FoldersController < ApplicationController
7 %w(My_folders Shared_with_me)
13 @objects = Group.where(group_class: 'folder').order('name')
18 @objects.each do |folder|
19 if !owner_of[folder.uuid]
21 owner_of[folder.uuid] = folder.owner_uuid
23 if owner_of[folder.owner_uuid]
24 if owner_of[folder.uuid] != owner_of[folder.owner_uuid]
25 owner_of[folder.uuid] = owner_of[folder.owner_uuid]
31 @objects.each do |folder|
32 if owner_of[folder.uuid] == current_user.uuid
35 @shared_with_me << folder
41 @objects = @object.contents include_linked: true
42 @logs = Log.limit(10).filter([['object_uuid', '=', @object.uuid]])
47 @new_resource_attrs = (params['folder'] || {}).merge(group_class: 'folder')