Merge branch 'sgm_fixbug' into 'master'

* Fix bug #19236.

See merge request easycorp/zentaopms!1709
This commit is contained in:
王怡栋
2022-02-07 02:59:23 +00:00
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -751,7 +751,7 @@ class apiModel extends model
$lib->type = 'api';
$lib->name = $name;
$lib->baseUrl = $baseUrl;
$lib->acl = 'private';
$lib->acl = 'open';
$lib->users = ',' . $currentAccount . ',';
$this->dao->insert(TABLE_DOCLIB)->data($lib)->exec();
+3
View File
@@ -80,4 +80,7 @@
</table>
</div>
<?php js::set('noticeAcl', $lang->api->noticeAcl);?>
<script>
$(function(){toggleAcl($('form input[name="acl"]:checked').val(), 'lib');})
</script>
<?php include '../../common/view/footer.lite.html.php';?>