Skip to content

Commit

Permalink
Merge pull request #30 from chilianyi/refactor
Browse files Browse the repository at this point in the history
GetServiceConfig is able to access for all users
  • Loading branch information
chilianyi authored Mar 4, 2019
2 parents da580b0 + 6c8a3b5 commit 9888ae7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/db/schema/am/v0_3__get_service_config.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
DELETE FROM module_api where api_method in ('GetAttachment', 'GetServiceConfig');
INSERT INTO module_api
(module_id,module_name,feature_id,feature_name,action_bundle_id,action_bundle_name,global_admin_action_bundle_visibility,isv_action_bundle_visibility,user_action_bundle_visibility,api_id,api_method,url_method,url) VALUES
('m0','默认权限','m0.f4','附件管理','m0.f4.a1','获取附件',0,0,0,'m0.f4.a1.api1','GetAttachment','get','/v1/attachments'),
('m0','默认权限','m0.f5','服务设置','m0.f5.a1','查看服务设置',0,0,0,'m0.f5.a1.api1','GetServiceConfig','post','/v1/service_configs/get')
;

0 comments on commit 9888ae7

Please sign in to comment.