tuoluzhe8521 commented on issue #37013:
URL: https://github.com/apache/superset/issues/37013#issuecomment-3736729367

   > > 这是 Superset 6.0.0 
中的一项有意更改。“列出用户”和“列出角色”模块已移至前端,默认情况下,它们的菜单项对用户界面隐藏——即使对管理员用户也是如此。但是,您仍然可以通过它们的 
URL 直接访问这些页面。
   > > 要将这些模块恢复到 UI 菜单,您需要在 Superset 配置中启用 FAB 安全 API,方法是设置以下内容:
   > > FAB_ADD_SECURITY_API = True
   > > 更新配置后,运行:
   > > ```
   > > superset init
   > > ```
   > > 
   > > 
   > >     
   > >       
   > >     
   > > 
   > >       
   > >     
   > > 
   > >     
   > >   
   > > 
这样一来,用户和角色管理模块应该会再次显示在用户界面菜单中。更多详情,请参阅[发行说明、代码变更](https://github.com/apache/superset/pull/36745)和[安全管理器实现](https://github.com/apache/superset/blob/master/superset/security/manager.py)。
   > > _回复时只需提及[@dosu](https://go.dosu.dev/dosubot)即可。_
   > > 
我做得怎么样?[好](https://app.dosu.dev/response-feedback/931d7e53-2afe-422d-9ba5-01a4d3cd5267?feedback_type=great_response)|[无关](https://app.dosu.dev/response-feedback/931d7e53-2afe-422d-9ba5-01a4d3cd5267?feedback_type=irrelevant_answer)|[错误](https://app.dosu.dev/response-feedback/931d7e53-2afe-422d-9ba5-01a4d3cd5267?feedback_type=incorrect_sources)|[冗长](https://app.dosu.dev/response-feedback/931d7e53-2afe-422d-9ba5-01a4d3cd5267?feedback_type=too_verbose)|[幻觉](https://app.dosu.dev/response-feedback/931d7e53-2afe-422d-9ba5-01a4d3cd5267?feedback_type=hallucination)|[举报
 
🐛](https://app.dosu.dev/response-feedback/931d7e53-2afe-422d-9ba5-01a4d3cd5267?feedback_type=bug_report)
 
|[其他](https://app.dosu.dev/response-feedback/931d7e53-2afe-422d-9ba5-01a4d3cd5267?feedback_type=other)
   > > [![与 Dosu 
聊天](https://camo.githubusercontent.com/7c571478962a6b8a5d47cac74b6824c75e4f6731bba52377e6007f9150462923/68747470733a2f2f646f73752e6465762f646f73752d636861742d62616467652e737667)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)
 
[![在光标中打开](https://camo.githubusercontent.com/bdf7dbded65ee585887f47e5fd6fa099ea0933088b4b03d02e83b4def50154d4/68747470733a2f2f646f73752e6465762f646f73752d696e2d637572736f722e737667)](https://cursor.com/link/prompt?text=This%20is%20an%20intentional%20change%20in%20Superset%206.0.0.%20The%20%27List%20Users%27%20and%20%27List%20Roles%27%20modules%20were%20moved%20to%20the%20frontend%2C%20and%20by%20default%2C%20their%20menu%20items%20are%20hidden%20from%20the%20UI%E2%80%94even%20for%20admin%20users.%20However%2C%20you%20can%20still%20access%20these%20pages%20directly%20via%20their%20URLs.%0A%0ATo%20restore%20these%20modules%20to%20the%20UI%20menu%2C%20you%20need%20to%20enable%20the%20FAB%20secur
 
ity%20API%20by%20setting%20the%20following%20in%20your%20Superset%20configuration%3A%0A%60%60%60python%0AFAB_ADD_SECURITY_API%20%3D%20True%0A%60%60%60%0AAfter%20updating%20your%20config%2C%20run%3A%0A%60%60%60%0Asuperset%20init%0A%60%60%60%0AThis%20should%20make%20the%20user%20and%20role%20management%20modules%20visible%20in%20the%20UI%20menu%20again.%20For%20more%20details%2C%20see%20the%20%5Brelease%20notes%20and%20code%20changes%5D%28https%3A//github.com/apache/superset/pull/36745%29%20and%20the%20%5Bsecurity%20manager%20implementation%5D%28https%3A//github.com/apache/superset/blob/master/superset/security/manager.py%29.)
 [![加入 
Discord](https://camo.githubusercontent.com/7d2066700925db1e370d956834f9ea0e5bc92cecbe84963fbd2a363e45091b4e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6a6f696e2d3538363546323f6c6f676f3d646973636f7264266c6f676f436f6c6f723d7768697465266c6162656c3d)](https://go.dosu.dev/discord-bot)
 [![分享至 X](https://camo.githubusercontent.com/a8bd
 
7f3fcf3f5e3bd124eee9ae50ae2ac17b40971726665ac2121d48f9aee155/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f582d73686172652d626c61636b)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/37013)
   > 
   > i enable the FAB security API by setting the following in my Superset 
configuration.This is my configuration file: FAB_ADD_SECURITY_API = True 
FAB_ADD_SECURITY_PERMISSION_VIEW = True FAB_ADD_SECURITY_VIEW_MENU_VIEW = True 
FAB_ADD_SECURITY_PERMISSION_VIEWS_VIEW = True
   > 
   > FAB_ADD_SECURITY_VIEWS = True And it was reinstalled once,however, the 
management menu is still not displayed [@dosu](https://github.com/dosu)
   
   i solve it like this ,because my metadata is mysql
   `UPDATE ab_view_menu SET name='Security' WHERE name='security';`
   but i think it is a bug
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to