Skip to content

Initial support for custom BDs by user's roles#120

Open
DimShadoWWW wants to merge 17 commits intocolinskow:masterfrom
Inforsoldes:master
Open

Initial support for custom BDs by user's roles#120
DimShadoWWW wants to merge 17 commits intocolinskow:masterfrom
Inforsoldes:master

Conversation

@DimShadoWWW
Copy link

Initial support for custom databases by user's roles (used only on a new account registration)

        defaultDBs: {
            private: ['private1'],
            shared: ['shared1']
        },
        customDBs: [
            {
                roles: "client1",
                DBs: {
                    //   private: none
                    //   shared: shared1, shared2
                    shared: ['shared2']    
                },
            },
            {
                roles: "client2",
                DBs: {
                    //   private: none
                    //   shared: private1
                    private: [],
                    shared: ['private1']
                },
            },
            {
                roles: "inspector1",
                DBs: {
                    //   private: private1
                    //   shared: private1_shared, shared3
                    shared: ['private1', 'shared3']
                },
                approach: 'rename' // append '_shared' if name conflict
            }
        ],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants