Skip to content

Remove PRINT_FILE_NAMES_FOR and PRINT_FILE_NAMES_PERMISSION_LEVEL#2952

Open
dlglin wants to merge 2 commits intoopenwebwork:WeBWorK-2.21from
dlglin:remove-print-file-names-for
Open

Remove PRINT_FILE_NAMES_FOR and PRINT_FILE_NAMES_PERMISSION_LEVEL#2952
dlglin wants to merge 2 commits intoopenwebwork:WeBWorK-2.21from
dlglin:remove-print-file-names-for

Conversation

@dlglin
Copy link
Copy Markdown
Member

@dlglin dlglin commented Apr 17, 2026

This removes the special PG environment variables PRINT_FILE_NAMES_FOR and PRINT_FILE_NAMES_PERMISSION_LEVEL.

In defaults.config the value of PRINT_FILE_NAMES_PERMISSION_LEVEL is set to the value of the print_path_to_problem permission, so now that permission is just checked directly.

I don't see the use of PRINT_FILE_NAMES_FOR. When a new course is created it is hardcoded to add all users with permission level of 'professor' or higher to the array, but those users will already be able to view file names via the print_path_to_problem permission.

The motivation behind this was to remove the one remaining setting that is added to course.conf when a new course is created. Now that file contains no settings by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant