|
@@ -40,7 +40,16 @@ public class DeviceFuncRepository {
|
|
|
|
|
|
|
|
|
|
|
|
|
public boolean isHaveAuth(@MemberType String auth) {
|
|
public boolean isHaveAuth(@MemberType String auth) {
|
|
|
- return true;
|
|
|
|
|
|
|
+ if (TextUtils.isEmpty(auth) || authsList.size() == 0) {
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
|
|
+ if (!Objects.equals(auth, MemberType.APP_IMAGE_CLEAN) && authsList.contains(MemberType.APP_SUPER_RECOVER)) {
|
|
|
|
|
+ return true;
|
|
|
|
|
+ }
|
|
|
|
|
+ if (Objects.equals(auth, MemberType.APP_WX_MESSAGE_RECOVER) || Objects.equals(auth, MemberType.APP_WX_FRIEND_RECOVER)) {
|
|
|
|
|
+ return authsList.contains(MemberType.APP_WX_MESSAGE_RECOVER) || authsList.contains(MemberType.APP_WX_FRIEND_RECOVER);
|
|
|
|
|
+ }
|
|
|
|
|
+ return authsList.contains(auth);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public void refreshFuncAuths() {
|
|
public void refreshFuncAuths() {
|