BAIS 권한 서비스를 Spring Java로 전환 #1
1 changed files with 11 additions and 0 deletions
|
|
@ -0,0 +1,11 @@
|
||||||
|
package com.example.authorization;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
public class AuthorizationService {
|
||||||
|
public boolean hasAccess(String userRole, String resource) {
|
||||||
|
// Simple access control logic
|
||||||
|
return "ADMIN".equals(userRole);
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue