File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -195,6 +195,12 @@ public function getPaginationPerPage()
195
195
*/
196
196
public function allowMultiUser ()
197
197
{
198
+ $ type_key = $ this ->currentLfmType ();
199
+
200
+ if ($ this ->config ->has ('lfm.folder_categories. ' . $ type_key . '.allow_private_folder ' )) {
201
+ return $ this ->config ->get ('lfm.folder_categories. ' . $ type_key . '.allow_private_folder ' ) === true ;
202
+ }
203
+
198
204
return $ this ->config ->get ('lfm.allow_private_folder ' ) === true ;
199
205
}
200
206
@@ -210,6 +216,12 @@ public function allowShareFolder()
210
216
return true ;
211
217
}
212
218
219
+ $ type_key = $ this ->currentLfmType ();
220
+
221
+ if ($ this ->config ->has ('lfm.folder_categories. ' . $ type_key . '.allow_shared_folder ' )) {
222
+ return $ this ->config ->get ('lfm.folder_categories. ' . $ type_key . '.allow_shared_folder ' ) === true ;
223
+ }
224
+
213
225
return $ this ->config ->get ('lfm.allow_shared_folder ' ) === true ;
214
226
}
215
227
You can’t perform that action at this time.
0 commit comments