Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for isRemoved (0.06 sec)

  1. cmd/admin-handlers-users_test.go

    	c.mustListObjects(ctx, uClient, bucket)
    
    	// 6. Verify that group cannot be deleted with users.
    	err = s.adm.UpdateGroupMembers(ctx, madmin.GroupAddRemove{
    		Group:    group,
    		IsRemove: true,
    	})
    	if err == nil {
    		c.Fatalf("group was removed!")
    	}
    	groupInfo, err = s.adm.GetGroupDescription(ctx, group)
    	if err != nil {
    		c.Fatalf("group desc err: %v", err)
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 22 00:33:43 UTC 2024
    - 47.3K bytes
    - Viewed (0)
  2. cmd/admin-handlers-users.go

    		if member == globalActiveCred.AccessKey {
    			writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, errIAMActionNotAllowed), r.URL)
    			return
    		}
    	}
    
    	var updatedAt time.Time
    	if updReq.IsRemove {
    		updatedAt, err = globalIAMSys.RemoveUsersFromGroup(ctx, updReq.Group, updReq.Members)
    	} else {
    		// Check if group already exists
    		if _, gerr := globalIAMSys.GetGroupDescription(updReq.Group); gerr != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 03 23:11:02 UTC 2024
    - 85.1K bytes
    - Viewed (0)
Back to top