Anonymous Login
2020-11-30 14:36 PST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0001286Pending Requests[All Projects] Generalpublic2013-07-04 23:24
Assigned To 
Product Version 
Target VersionFixed in Version 
Summary0001286: FIX: A folder cannot be edited, failing with a permissions error
DescriptionThis is because of the default way edit permissions are checked. The fix involves adding the following method to the bottom of the 'folders.class.php' file in the 'files' module directory:

    // This is a hack to allow editing a folder. If the logged in user
    // has a file inside of which it is the owner its assumed that (s)he
    // may edit the folder. This is done with a query.
    public function canEdit() {
        $q = $this->_getQuery();
        $q->addWhere('file_folder = ' . (int)$file_folder_id);
        $q->addWhere('file_owner = ' . $this->_AppUI->user_id);

        // counts total recs from query
        return count($q->loadList()) > 0;
TagsNo tags attached.
Attached Files

duplicate of 0001277closedcaseydk v3.0 Release Can't edit existing folders 



caseydk (administrator)

Closed in favor of the original report.

-Issue History
Date Modified Username Field Change
2013-03-07 01:50 carlosazevedo New Issue
2013-03-13 22:08 caseydk Relationship added duplicate of 0001277
2013-03-13 22:10 caseydk Note Added: 0002848
2013-03-13 22:10 caseydk Status new => closed
2013-03-13 22:10 caseydk Resolution open => suspended
2013-07-04 23:24 caseydk Project v3.0 Release => Pending Requests
+Issue History