yonge 5 năm trước cách đây
mục cha
commit
1b7c56b224

+ 1 - 1
mec-common/common-core/src/main/java/com/ym/mec/common/security/PermissionCheckService.java

@@ -7,7 +7,7 @@ import org.springframework.security.core.Authentication;
 import org.springframework.security.core.GrantedAuthority;
 import org.springframework.stereotype.Component;
 
-@Component("pcs")
+//@Component("pcs")
 public class PermissionCheckService {
 
 	public boolean hasPermissions(String... permissions) {

+ 0 - 5
mec-web/src/main/java/com/ym/mec/web/controller/IndexController.java

@@ -7,7 +7,6 @@ import java.util.Map;
 
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.http.HttpStatus;
-import org.springframework.security.core.Authentication;
 import org.springframework.ui.ModelMap;
 import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
@@ -95,8 +94,4 @@ public class IndexController extends BaseController {
 		return succeed(model);
 	}
 
-	@GetMapping(value = "/username")
-    public Object currentUserName(Authentication authentication) {
-        return succeed(authentication);
-    }
 }