Description of problem:
CMS Folder permission UI should not display the "search for persons or groups"
form for adding custom permissions when the folder inherits permissions from
parent. This should only be an option for folders with custom permissions.
Version-Release number of selected component (if applicable):
trunk (probably 6.0 too)
Steps to Reproduce:
1.browse to a folder with no custom permissions
2. The form with the following text is visible: "Search for persons or groups to
grant direct permissions to"
For non-custom folder permissions, add user/group form is visible, and it
actually lets me add additional permissions to the folder (although these
additional permissions don't appear in the list until I later select the "use
custom permissions" link
This should be hidden for folders which inherit permissions. Note that this
seems to be a default visibility issue, since the form disappears if I select
"use custom permissions" and then "restore default permissions"
In addition to fixing the visibility, the form itself should probably do some
checking so as to prevent the user from adding custom permissions when the
folder inherits its permissions from the parent (i.e. the context of the folder
is not null)