Skip to content

Commit

Permalink
Merge pull request #848 from NewSpring/sync-pre-alpha
Browse files Browse the repository at this point in the history
Sync Pre Alpha
  • Loading branch information
richarddubay committed May 9, 2019
2 parents a96e584 + 4472baf commit 5c67b39
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions RockWeb/Blocks/Groups/GroupDetail.ascx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1745,6 +1745,12 @@ private void ShowGroupTypeEditDetails( GroupTypeCache groupType, Group group, bo
{
wpGroupAttributes.Visible = true;
var excludeForEdit = group.Attributes.Where( a => !a.Value.IsAuthorized( Rock.Security.Authorization.EDIT, this.CurrentPerson ) ).Select( a => a.Key ).ToList();
Rock.Attribute.Helper.AddEditControls( group, phGroupAttributes, setValues, BlockValidationGroup, excludeForEdit );

if ( excludeForEdit.Count() == group.Attributes.Count() )
{
wpGroupAttributes.Visible = false;
}
}
else
{
Expand Down

0 comments on commit 5c67b39

Please sign in to comment.