Skip to content

folders_table.php: stubbed record count and always-false checks #408

Closed

Description

@caseysoftware
  • L50: $xpg_totalrecs = 0; with the real getFileCountByFolder() call commented out. The paging variables on L44–45 are never used.
  • L104: (!empty($limited) && !$limited) can never be true.
  • $limited (also in index.php L69 and companies_tab.view.files.php L14) is always false, because CFile_Folder::getAllowedRecords() ignores the user and returns every folder. So the folder-based $canEdit override never restricts anything.

Fix: restore or remove the count and paging, and simplify the $limited/$canEdit logic to match the fact that folders have no separate permissions.

Depends on #406.

Fix before Phase 1 of the Pluggable File Backend proposal (#404).

Activity

  1. added a commit that references this issue on Oct 21, 2026
    001c3b1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions