Closed (fixed)
Project:
D7 Media
Version:
7.x-2.x-dev
Component:
File entity
Priority:
Critical
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
20 Jul 2011 at 19:01 UTC
Updated:
4 Jan 2014 at 01:11 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dave reidComment #2
dave reidComment #3
JacobSingh commentedSince the file_entity module is sorta like the new file module, we should move over all the UIs for managing files. It seems like a good idea since node CRUD screens are stored in node, taxonomy CRUD in taxonomy, etc.
So w'll do two things:
Comment #4
robeano commentedThe following patch moves basic file operations out of the Media Module and into File Entity module. Viewing, editing, deleting files is now handled by File Entity.
Comment #5
robeano commentedI missed hook_permission(). Rolling new patches.
Comment #6
JacobSingh commentedA few small typos, etc.
fix..
add a newline here?
This can be a followup, but shouldn't this be part of the access callback.
Why add this commented stuff?
less spaces?
Comment #7
robeano commentedoops. My last file-ops-file-entity1224788.patch file was missing the new file file_entity.pages.inc. It is included with this patch.
Comment #8
robeano commentedWe found that Media sets some defautls like gruning on View modes for each file type which File Entity does not do...yet. That's for another issue to solve and won't be a part of the current patches.
Comment #9
robeano commentedNew version of each patch. Minor clean up plus added hook_admin_paths to file_entity.
Comment #10
JacobSingh commentedThis is good to go. One little bug which Robin knows about and is fixing. Otherwise tested.
Comment #11
robeano commentedCommitted to both modules:
Media: 5685d5c
File Entity: 555650a
Comment #12
dave reidWe actually have several problems: we missed the update for 'view media' => 'view files' and 'edit media' => 'edit files' as well. Likely we should move this update hook back to media since it's responsible for it's permissions changing.
Comment #13
aaron commentedthis checks that the perm exists before continuing, throwing a recoverable error otherwise.
Comment #14
aaron commentedsee related issue at #1290634: Install view file permission to all roles by default.
Comment #15
aaron commentedoops; forgot to renumber the update_N properly.
Comment #16
aaron commentedhandle the admin perms here too as well, rather than in file entity. (file entity may be installed w/o media).
Comment #17
aaron commentedhere's the real patch. rtbc by robeano irl
Comment #18
aaron commentedand committed.