🐛 Fix group permission didn't extend properly
This commit is contained in:
		
							
								
								
									
										8
									
								
								.idea/workspace.xml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										8
									
								
								.idea/workspace.xml
									
									
									
										generated
									
									
									
								
							@@ -4,9 +4,7 @@
 | 
			
		||||
    <option name="autoReloadType" value="ALL" />
 | 
			
		||||
  </component>
 | 
			
		||||
  <component name="ChangeListManager">
 | 
			
		||||
    <list default="true" id="3fefb2c4-b6f9-466b-a523-53352e8d6f95" name="更改" comment=":bug: Fix unable get user full perm node">
 | 
			
		||||
      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
 | 
			
		||||
      <change beforePath="$PROJECT_DIR$/pkg/internal/grpc/auth.go" beforeDir="false" afterPath="$PROJECT_DIR$/pkg/internal/grpc/auth.go" afterDir="false" />
 | 
			
		||||
    <list default="true" id="3fefb2c4-b6f9-466b-a523-53352e8d6f95" name="更改" comment=":loud_sound: Add verbose permission logging">
 | 
			
		||||
      <change beforePath="$PROJECT_DIR$/pkg/internal/services/auth.go" beforeDir="false" afterPath="$PROJECT_DIR$/pkg/internal/services/auth.go" afterDir="false" />
 | 
			
		||||
    </list>
 | 
			
		||||
    <option name="SHOW_DIALOG" value="false" />
 | 
			
		||||
@@ -160,7 +158,6 @@
 | 
			
		||||
  </component>
 | 
			
		||||
  <component name="VcsManagerConfiguration">
 | 
			
		||||
    <option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="false" />
 | 
			
		||||
    <MESSAGE value=":bug: Refresh token bug" />
 | 
			
		||||
    <MESSAGE value=":truck: Auth kit and parser of nexus userinfo token" />
 | 
			
		||||
    <MESSAGE value="Revert ":recycle: Move models.Account to sec.UserInfo"

This reverts commit 8fbb7960" />
 | 
			
		||||
    <MESSAGE value=":rewind: Revert ":recycle: Move models.Account to sec.UserInfo" for a better solution

This reverts commit 8fbb7960" />
 | 
			
		||||
@@ -185,7 +182,8 @@
 | 
			
		||||
    <MESSAGE value=":sparkles: Support jwks.json according OIDC stranded" />
 | 
			
		||||
    <MESSAGE value=":bug: Fix get user grpc method didn't extend group's permission" />
 | 
			
		||||
    <MESSAGE value=":bug: Fix unable get user full perm node" />
 | 
			
		||||
    <option name="LAST_COMMIT_MESSAGE" value=":bug: Fix unable get user full perm node" />
 | 
			
		||||
    <MESSAGE value=":loud_sound: Add verbose permission logging" />
 | 
			
		||||
    <option name="LAST_COMMIT_MESSAGE" value=":loud_sound: Add verbose permission logging" />
 | 
			
		||||
    <option name="GROUP_MULTIFILE_MERGE_BY_DIRECTORY" value="true" />
 | 
			
		||||
  </component>
 | 
			
		||||
  <component name="VgoProject">
 | 
			
		||||
 
 | 
			
		||||
@@ -82,6 +82,7 @@ func CacheAuthContext(sessionId uint) (models.AuthTicket, error) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	ticket.Account = user
 | 
			
		||||
 | 
			
		||||
	// Put the data into the cache
 | 
			
		||||
	cacheManager := cache.New[any](localCache.S)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user