Hello,
we upgraded from NC 27 to NC 28.0.2
Changes in the …/apps/files/js files like fileactions.js, newfilemenu.js etc. have no effects any more.
We made these changes to prevent that users change the folder structure.
That means only admin user can create, rename, delete or move folders
Normal users can only create, delete or rename files in the given structure.
We know that this method is not optimal, because we have to make the changes after every update but it worked without problems for years now until upgrade to NC 28
Example a part of our customized filelist.js to prevent that “normal” users move files or directories:
* Event handler for when clicking on “Move” for the selected files
*/
_onClickCopyMoveSelected: function(event) {
var files;
var self = this;
// change only admin can move
if (!(OC.currentUser === “admin”)) {
alert(“Missing rights to execute this function”);
return;
}
There are other posts ( Files Plugin Register does not work in stable28 ) that report also problems with adjustments in js code
The reference to the Upgrade NC 28 page doesn´t help me with my problem.
Other users mentioned that the API changed.
One thing could be also interesting:
In the Folder | @nextcloud/files
the file node.ts has a move method, maybe we could customize that file.
Problem is, that we don´t have the node.ts file in our installation.
Maybe some other here had the same problem after upgrade to NC 28 and
could give me an tipp in which files NC 28 defines the function for file actions
like rename, create and delete.
That would help me a lot.