Support \noinferiors to disallow creating subfolders

This commit is contained in:
the-djmaze 2023-11-22 04:07:57 +01:00
parent d74407f36b
commit 5cdbba8da0
3 changed files with 8 additions and 12 deletions

View file

@ -548,6 +548,8 @@ export class FolderModel extends AbstractModel {
folder.isSubscribed(attr('\\subscribed'));
folder.exists = !attr('\\nonexistent');
folder.subFolders.allow = !attr('\\noinferiors');
// folder.subFolders.exist = attr('\\haschildren') || !attr('\\hasnochildren');
folder.selectable(folder.exists && !attr('\\noselect'));
type && 'mail' != type && folder.kolabType(type);