User Management: removed limitation on the user rights that could not be established without a given object set, and added a feedback in the user details page (grant summary, based on the results returned by the std user management API, thus is reliable)

SVN:code[169]
This commit is contained in:
Romain Quetiez
2009-09-16 16:01:12 +00:00
parent 152b97a24a
commit 103f5e4568
7 changed files with 198 additions and 66 deletions

View File

@@ -31,7 +31,7 @@ function Page1_AskClass($oPage)
$oPage->add("<form method=\"post\" action=\"\">\n");
//$oPage->add("<input type=\"hidden\" name=\"tnut\" value=\"blah\">");
$oPage->p("Please select the type of object that you want to look for:");
$oPage->MakeClassesSelect("class", "", 50);
$oPage->MakeClassesSelect("class", "", 50, UR_ACTION_READ);
$oPage->add("<input type=\"submit\" name=\"userconfig\" value=\"Configure filters\">\n");
$oPage->add("</form>\n");
}

View File

@@ -339,7 +339,7 @@ function Do_Welcome($oPage, $sClass)
$sCSVData = utils::ReadPostedParam('csvdata');
$oPage->add("<form method=\"post\" action=\"\">");
$oPage->MakeClassesSelect("class", $sClass, 50);
$oPage->MakeClassesSelect("class", $sClass, 50, UR_ACTION_MODIFY);
$oPage->add("<br/>");
$oPage->add("<textarea rows=\"25\" cols=\"100\" name=\"csvdata\" wrap=\"soft\">$sCSVData</textarea>");
$oPage->add("<br/>");