Our application (AutoCAD addon) requires a valid user login to access a list of documents fetched according to user-spefic read/write rights (both user info and relative access rights are fetched from the database).
Basically we need to lock up drawings (if needed), in order to disallow unauthorized users to commit changes those particular documents.
So my question is: how do we make the drawing document structure read-only for current section (without modifying file attributes inside the file system or locking the file with a dummy file stream).
I would do that by user-accounts, define groups on your server, each group can have different users. And for the network shares define for each share one group that have full access permissions, other only have read-only and what is not defined does not have any permissions.
I don't know at the moment what that question has to do with dotNET development?
- alfred -
Instead of preventing changes, it might be simpler to prevent overwriting drawings in the check-in procedure.
P.S. In order to understand what kind of functionality we would like to accomplish think about Word documents: when you open a document from unknown source, Word tell you that you cannot edit it, unless you press on "Edit this document button" (I'm not sure about the button caption).
We just want to conditionally lock the document from basic interactions such as antity insertion/creation, entity selection, save commands etc
ok, you gave a mass of informations like "Users are stored in SQLite/Postgres/MySQL DB" or "Our question is stricly connected to dotNet programming. Ask for more details before posting this kind of answers." but you don't show any connection between these phrases.
Sorry, I don't have your problem, so I don't have to "ask more details", it's up to the TO to give information, and the more he gives the more and better the answer will arrive.
As I don't have to "post that kind of answers" ... I'm out.
Good luck anyway, - alfred -
Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.