Reintroduce roles. Unfinished stuff: setting default user and history

permissions, user-side permissions settings on datasets, viewing
associated datasets under the role page in the admin controler (is this
even necessary?), filtering out roles by type.  I haven't addressed
tests, so the security-related functional tests will fail.  I haven't
looked at history sharing yet either.  Cleanup to remove unused methods
is needed in the admin controller.  And the admin templates are a
bit messy.
This commit is contained in:
Nate Coraor
2008-10-09 17:05:57 -04:00
parent 8887c27785
commit dfdbef9d36
26 changed files with 642 additions and 849 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ def exec_after_process(app, inp_data, out_data, param_dict, tool, stdout, stderr
newdata.extension = file_type
newdata.name = basic_name + " (" + description + ")"
history.add_dataset( newdata )
app.security_agent.set_dataset_permissions( newdata.dataset, base_dataset.dataset.groups )
app.security_agent.copy_dataset_permissions( base_dataset.dataset, newdata.dataset )
app.model.flush()
try:
copyfile(filepath,newdata.file_name)