Skip to content

Commit

Permalink
set...list: enforce permission only once
Browse files Browse the repository at this point in the history
  • Loading branch information
M66B committed Feb 3, 2014
1 parent 3acf2e5 commit c3cbf83
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/biz/bokhorst/xprivacy/PrivacyService.java
Original file line number Diff line number Diff line change
Expand Up @@ -345,9 +345,9 @@ private void setRestrictionInternal(PRestriction restriction) throws RemoteExcep

@Override
public void setRestrictionList(List<PRestriction> listRestriction) throws RemoteException {
// Permission enforced by setRestriction
enforcePermission();
for (PRestriction restriction : listRestriction)
setRestriction(restriction);
setRestrictionInternal(restriction);
}

@Override
Expand Down Expand Up @@ -803,9 +803,9 @@ private void setSettingInternal(PSetting setting) throws RemoteException {

@Override
public void setSettingList(List<PSetting> listSetting) throws RemoteException {
// Permission enforced by setSetting
enforcePermission();
for (PSetting setting : listSetting)
setSetting(setting);
setSettingInternal(setting);
}

@Override
Expand Down

0 comments on commit c3cbf83

Please sign in to comment.