Skip to content

Commit 91b599b

Browse files
committed
Update IUserService.cs
1 parent a378d0c commit 91b599b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/Umbraco.Core/Services/IUserService.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,13 @@ public interface IUserService : IMembershipUserService
5454
void DeleteSectionFromAllUsers(string sectionAlias);
5555

5656
/// <summary>
57-
/// Add a specific section to all users
57+
/// Add a specific section to all users or those specified as parameters
5858
/// </summary>
59-
/// <remarks>This is useful when a new section is created to allow all users accessing it</remarks>
59+
/// <remarks>This is useful when a new section is created to allow specific users accessing it</remarks>
6060
/// <param name="sectionAlias">Alias of the section to add</param>
61-
void AddSectionToAllUsers(string sectionAlias);
62-
61+
/// <param name="userIds">Specifiying nothing will add the section to all user</param>
62+
void AddSectionToAllUsers(string sectionAlias, params int[] userIds);
63+
6364
/// <summary>
6465
/// Get permissions set for a user and optional node ids
6566
/// </summary>

0 commit comments

Comments
 (0)