(5.6) File set permissions
Permalink
Hello all
I've discovered that the documentation for programmatically assigning permissions to file sets seems to be out of date. The page refers to $fs->setPermissions() when in fact the API method is $fs->assignPermissions(), and the arguments suggested don't work with the latest code.
assignPermissions() asks for an array of PermissionKey handles -- is there a list of these somewhere? I've trawled through the code but I can't find any that relate specifically to file sets.
I've discovered that the documentation for programmatically assigning permissions to file sets seems to be out of date. The page refers to $fs->setPermissions() when in fact the API method is $fs->assignPermissions(), and the arguments suggested don't work with the latest code.
assignPermissions() asks for an array of PermissionKey handles -- is there a list of these somewhere? I've trawled through the code but I can't find any that relate specifically to file sets.
https://github.com/concrete5/concrete5-legacy/blob/master/web/concre...