记得上下班打卡 | git大法好,push需谨慎

Commit ea3c66e3 authored by 胡佳晨's avatar 胡佳晨

提交 如果演出是登录用户创建则获得全部权限

parent 0fbd8671
......@@ -350,6 +350,17 @@ public class MongoMerchantUtils {
dao.setTimeStop(timeStop);
for (MerchantAuthorizationPerformanceVo permission : permissionVoList) {
if (permission.getUid().equals(performancePartnerListParam.getMerchantId()) || redisMerchantUtils.superAccount(performancePartnerListParam.getMerchantId())) {
dao.setPermissionId(new ArrayList<String>() {{
add(MerchantAuthorizationConst.PerformancePermission.READ.getId());
add(MerchantAuthorizationConst.PerformancePermission.EDIT.getId());
add(MerchantAuthorizationConst.PerformancePermission.LINE.getId());
add(MerchantAuthorizationConst.PerformancePermission.SALES.getId());
add(MerchantAuthorizationConst.PerformancePermission.CHECK.getId());
add(MerchantAuthorizationConst.PerformancePermission.GRANT.getId());
}});
break;
}
if (permission.getPerformanceId().equals(item.getPerformancesId())) {
dao.setPermissionId(permission.getPermissionIds());
permissionVoList.remove(permission);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment