Uploaded image for project: 'JCommune'
  1. JCommune
  2. JC-919

Move @PreAuthorize tag from private to interface methods.

VotersWatchers
    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.19
    • Fix Version/s: 1.5 Larks
    • Labels:
      None
    • Sprint:
      1.5 Larks

      Description

      Security annotations does not works on private methods, just on public interfaces method which can be proxied.

      TransactionalLastReadPostService.java

      • private int calculatePostIndex(JCUser user, Topic topic, int pageNum, boolean pagingEnabled) {
      • private void saveLastReadPost(JCUser user, Topic topic, int postIndex) {

      TransactionalPollService.java

      • private Poll vote(Poll poll, List<Long> selectedOptionIds, long branchId) {

      TransactionalPostService.java

      • private void updatePost(Post post, String postContent) (done in scope of JC-922)

      TransactionalTopicService.java

      • private Branch deleteTopic(Topic topic, long branchId) throws NotFoundException (done in scope of JC-922)
      • private void moveTopic(Topic topic, Long branchId) throws NotFoundException (done in scope of JC-922)

        Attachments

          Structure

            Activity

              People

              • Assignee:
                varro Artem R
                Reporter:
                lamao Vyacheslav Mishcheryakov
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1h Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h
                  2h

                    Structure Helper Panel