Quantcast
Channel: wixsharp Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1354

New Post: Directories are always created

$
0
0
You can achieve the desired behavier by associating the permission with the corresponding feature:
new Dir(docs, "logdocs", new DirPermission("Everyone", GenericPermission.All) { Feature = docs }
This does work though the code looks a bit repetitive and I do see here an opportunity for improving the API. The next release will associate the permission either with its own Feature of with the Feature of the parent folder (depending on which one is initialized). And the DirPermission.Feature will be marked as obsolete to prepare it for an imminent phasing out.

Viewing all articles
Browse latest Browse all 1354

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>