-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Logger bug fixed: now it logs only successfully done operations, not …
…all. Ingredient admin functionality implemented. Account email confirmation updated: provided better UX. Refactores some duplicate code. Refactored services to return boolean instead of null. Bug fixed: user now can't be deleted by admin because of the logger relation, but his account can be disabled :).
- Loading branch information
Showing
114 changed files
with
1,137 additions
and
1,142 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
PizzaNationApp/src/main/java/pizzaNation/admin/controller/AdminLogController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package pizzaNation.admin.controller; | ||
|
||
import org.springframework.security.access.prepost.PreAuthorize; | ||
import org.springframework.stereotype.Controller; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.servlet.ModelAndView; | ||
import pizzaNation.app.contoller.BaseController; | ||
|
||
import static pizzaNation.admin.controller.AdminController.ADMIN_PAGE_TITLE_MAP_ENTRY; | ||
import static pizzaNation.app.util.WebConstants.ADMIN_LOGS_ALL_URL; | ||
|
||
/** | ||
* Created by George-Lenovo on 17/04/2018. | ||
*/ | ||
@Controller | ||
public class AdminLogController extends BaseController { | ||
|
||
@PreAuthorize("hasAnyRole('ROLE_ADMIN')") | ||
@GetMapping(ADMIN_LOGS_ALL_URL) | ||
public ModelAndView allLogs() { | ||
return super.view(null, ADMIN_PAGE_TITLE_MAP_ENTRY); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.