informatics-isi-edu / protein-database

Deriva Protein Database Project
2 stars 1 forks source link

Update ACL for accession code table #227

Closed brindakv closed 4 hours ago

brindakv commented 3 weeks ago

User should not be able to see or edit the following columns in the Accession_Code table:

brindakv commented 3 weeks ago

@svoinea Please use following snippet for ACL update

cnames = ["Accession_Serial", "PDB_Extended_Code", "PDB_Code", "PDB_Accession_Code", "Notes"]
    for cname in cnames:
        col = table.columns[cname]
        col.acls.update({
            "enumerate": {},
            "select": g["entry-updaters"],        
            "insert": g["entry-updaters"]
        })
brindakv commented 3 weeks ago

Looks good on dev.