Resolved few intialization issue with Node model data, moved the

privileges functionality out of the backform.pgadmin.js to make it more
modular. Now - privileges will expect the privileges data in following
format:
<name_of_the_property> : [{
    "privileges": [{
        "privilege_type": <privilege_type>,
        "privilege": true,
        "with_grant": false
    },
    ...
    ],
    "grantee": <grantee>,
    "grantor": <grantor>
    },
   ...
]

Example:
acl": [{
    "privileges": [{
        "privilege_type": "CONNECT",
        "privilege": true,
        "with_grant": false
     	}],
    "grantee": '',
    "grantor": 'ashesh'
},{
    "privileges": [{
        "privilege_type": "CREATE",
        "privilege": true,
        "with_grant": false
    },{
        "privilege": true,
        "privilege_type": "TEMPORARY",
        "with_grant": false
    }],
    "grantee": test,
    "grantor": ashesh
}]
This commit is contained in:
Ashesh Vashi
2015-12-23 12:10:20 +05:30
parent bf5170bc89
commit c51ecc69e4
8 changed files with 575 additions and 308 deletions

View File

@@ -492,7 +492,11 @@ fieldset[disabled] .form-control {
}
.backgrid td.renderable:not(.editable):not(.delete-cell) {
background-color: #eee;
background-color: #F1F1F1;
}
.backgrid tr.header td.renderable:not(.editable):not(.delete-cell) {
background-color: #AAA;
}
.subnode-header {
@@ -583,3 +587,11 @@ table.backgrid tr.new {
.switch-cell {
height: 0px; width: 0px;
}
.width_percent_40 {
width: 40%;
}
.width_percent_60 {
width: 60%;
}