简体   繁体   English

用户可以查看每个人的个人资料,但只能编辑自己的个人资料,如何在 Shiro 中实现?

[英]User can view everyone's profile but only edit its own, how to implement in Shiro?

I am developing a small Java project with rest service and Apache Shiro.我正在开发一个带有休息服务和 Apache Shiro 的小型 Java 项目。 One requirement is that an authenticated user can view everyone's profile but can only edit its own profile.一项要求是经过身份验证的用户可以查看每个人的个人资料,但只能编辑自己的个人资料。 Can I implement using Permission and how?我可以使用权限实现吗?如何实现?

看看通配符权限文档: https : //shiro.apache.org/permissions.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何仅对用户自己的端点启用请求 - How can I enable request only for user's own endpoint 使用Shiro.ini,如何阻止已登录用户的页面? (只有未登录的用户才能看到页面) - With Shiro.ini , How I can block a page of a logged users? (only NOT logged user can see a page) 如何实现多租户 Spring Boot 应用程序(每个用户都有自己的数据库) - How to implement a Multi Tenant Spring Boot application ( where each user has its own Database) 如何使用Intent打开用户的个人资料联系人? - How can I open the user's profile contact using an Intent? 如何使用Shiro的SaltedAuthenticationInfo? - How to use the Shiro's SaltedAuthenticationInfo? Android中的“编辑文本”是否可以允许用户不编辑其第一行 - Can an Edit Text in android allows the user not to edit its first line 如何使用自己的XML配置实现自定义中介? - How to implement a custom mediator with its own XML configuration? 我如何在Java中实现与Lombok的注释类似的注释 - How I can implement own annotation in Java similar to Lombok's annotations Google Analytics(分析)-在页面分析中-无法看到每个人的日期,仅登录数据 - Google Analytics - In Page Analytics - Can not see everyone's date only logged in data 编译器如何引用自己的输出 - How can the compiler reference its own output
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM