Comments (4)
Здрасти, Радо!
Амиии... дано я схващам идеята. Мисля, че за този случай може би би било удачно да използваш @PreAuthorize
анотацията. Напомням, правихме демо как се ползва при изтриване на оферта в мобилето където една оферта можеше да се трие от автора и, но и от администратор. Прилагам пример:
@PreAuthorize("@offerServiceImpl.isOwner(#uuid, #principal.username)")
@DeleteMapping("/{uuid}")
public String delete(@PathVariable("uuid") UUID uuid,
@AuthenticationPrincipal UserDetails principal) {
offerService.deleteOffer(uuid);
return "redirect:/offers/all";
}
Мислиш ли, че този подход ще свърше работа за случая ти?
Поздрави,
Л.
from softuni-sep-2023.
Благодаря, ще потърся и прегледам въпросното демо, че основно до сега съм гледал видеа от предишни издания на курса и не съм срещал.
Хубав следобед!
from softuni-sep-2023.
Привет, Лъчо!
Намерих, изгледах и приложих подхода! Получи се супер.
Благодарности!
from softuni-sep-2023.
Супер! Поздрави, Л.
from softuni-sep-2023.
Related Issues (20)
- Method overriding HOT 3
- CriteriaQuery problem HOT 2
- Dynamically creating pagination request but ignoring the already existing query params HOT 1
- Spring Security issue related with th:action in a bootstrap modal HOT 3
- Проверка на проект HOT 5
- Проблем със security HOT 10
- Имам проблем с bootstrap HOT 6
- Добавяне на снимка към профила HOT 1
- WISH HOT 3
- Admin Controller Issue HOT 2
- Проблем със секюрити и опцията за запаметяване на потребителя. HOT 7
- Wish HOT 3
- Проблем при тестове. HOT 2
- Проблем със Spring Security
- Searching functionality HOT 1
- Проблем при тестовете с @WithMockUser HOT 4
- Issue with changing the languages with Interceptor HOT 5
- Проблем с Fetch и Java Script HOT 1
- Помощ HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from softuni-sep-2023.