ISecurityInformation "Show advanced permissions" link - c++

The ISecurityInformation interface can be used to display permissions for:
an object,
a group, or
a user name.
If the SI_ADVANCED flag is set when calling GetObjectInformation, the Advanced button becomes available.
After clicking Advanced:
a Principal can be selected
and then the View or Edit buttons become available (also contingent on the flags set when GetObjectInformation is called).
Clicking Edit or View will bring up the Permission Entry dialog. On this dialog there is another link that says Show advanced permissions.
Regardless of the flag combination that I set when initializing dwFlags, I am unable to get anything to display on the second Advanced permissions dialog.
To see the information that I am attempting to glean, right-click on any file in Windows Explorer then select
Properties
Security
Advanced
[any Principal]
View
Show advanced permissions.
I am trying to gain access to this same information from within my implementation of ISecurityInformation. I have tried just about every flag listed in the documentation of the SI_OBJECT_INFO, and various combinations, with no success. Changing these flags does alter the layout of the Permission Entry dialog but the actual content of the Advanced permissions area is always blank.
Is there something else that I need to initialize when instantiating the ISecurityInformation interface?

I was able to resolve this by updating the implementation of GetAccessRights as shown at http://www.codeproject.com/Articles/10811/The-Windows-Access-Control-Model-Part. The problem lied with the implementation of GetAccessRights, not GetObjectInformation.

Related

CMFCPropertyGridProperty questions

I have a C++ MFC application, and using a CMFCPropertyGridControl with CMFCPropertyGridProperty. Wondering if it's possible to modify the behavior of the control so that the following occurs:
Looking to have the drop down arrow always appear on the CMFCPropertyGridProperty where there are available options to choose. Currently the user is required to double click on the row in order for the drop down arrow to appear on the control. Some users may not be aware there are other options to select.
When a user double clicks on the CMFCPropertyGridProperty with 3 options to choose from, the control changes the currently selected option to the next option. I don't want the option to change to another option unless the user specifically selects a different option using the drop down menu.
For a CMFCPropertyGridProperty with an enabled spin control, the spin control does not display until a user first clicks on the row in the property grid, and then double clicks on the property. I would like the spin control to always display.
Any suggestions or help at all would be greatly appreciated.

"Add to here" is not visible in page editor mode

When I click on "Component" in Page Editor mode I don't see "Add to here" for most of the components. I can see it for just one component which is not desired. I want it for all the components. I checked the properties, "Editable" is checked for it. Also placeholder settings are fine. Please suggest.
If you're seeing at least one Add to here, that means that you've got the Page Editor in the correct Designing view in Page Editor.
You say that your "placeholder settings are fine", but does the Placeholder Key match exactly the ID of the placeholder that you have in your rendering? Additionally, have you specified the Allowed Controls that can be placed in the placeholder?

how to set the rights for placeholder ribbon

beginner question for sitecore about settings the right.
So I have an item is open in the page editor.
The renderings on the page has bunch of icons on the ribbon. One of them called 'select the parent element (element name)'.
In my case when I click on it, I am presented with the placeholder with button 'add here' and the ribbon with some component buttons that a user can use to add the controls.
So, QUESTION:
"how I add access to the button on that ribbon for certain role? Where do I set it up? "
For some certain role that placeholder's ribbon is completely empty, including there is no button 'select the parent element' even though
i know there is a parent element.
thank you very much for help,
HF
Here are the screenshots (no icons on the placeholder ribbon, and the user's rights:
enter image description here
And here is how that looks for the admin:
All the settings for the Page Editor are held in the Core database. So in the Sitecore Desktop, switch to the core database and open up the Content Editor.
Navigate to : /sitecore/content/Applications/WebEdit
This item holds the items that make up the page editor. To edit the ribbon menues, go to:
/sitecore/content/Applications/WebEdit/Ribbons
I don't remember seeing that particular button in the Core database, so this is likely a built-in feature that requires the user to have one of the built-in permissions.
The first thing I would check is that Designing is turned on. Have the user go to the 'View' tab in Page Editor and make sure they have checked the 'Designing' checkbox.
If that doesn't work, it sounds like the user you have does not have design access to the page. I would examine the inherited roles using the User Manager and check if they have the Sitecore Designer role inherited.
It is possible they just need to be provided the correct role in the system so that they can access the buttons.
Have you tried the "Sitecore Client developing role"?
Also, for the blue arrow drop list location, in order for the rendering button to show up in that location, you have to check whether the button in the webedit folder under core database(/sitecore/content/Applications/WebEdit/Default Rendering Buttons). The Type field needs to be "Common" in order to show up in the blue arrow droplist.
Example can be the "Edit related item" (/sitecore/content/Applications/WebEdit/Default Rendering Buttons/Edit related item) shows up in the blue arrow droplist.

Can't click enable or show items in Page Editor in Sitecore

I can't seem to click the "Editing" "Designing" "Controls" "Navigation bar" checkboxes in the View ribbon on the Page Editor. Is this a permission thing? Haven't found a way to enable it (I have it enabled on a mirror/development version so I know it works)
Thanks
Apparently for anyone checking this out, if you don't have the appropriate item commands in your Commands.config file, then they will neither enable or disable these options.
So the solution is to check your Commands.config file and make sure you have the appropriate "webedit:toggleeditvisibility", etc. commands in there.
Must be a permissions thing. See if your user is a member of sitecore\Author and sitecore\Designer, if you're not using a user account marked "Is Administrator"

how to hide the content in sitecore

I am working with sitecore and now i needs to hide some of the content item in sitcore.what is the process to hide the content'
Why do you want to hide and what do you want to hide?
You could probably setup security to only allow people with certain roles to read, write, etc certain items (and subitems) or setup that only certain roles can see certain fields.
You can probably find most of what you need here:
http://sdn.sitecore.net/Reference/Sitecore%206/Security%20Administrator%20Cookbook.aspx
Otherwise give an example of what you want to do, it might be easier to help then.
If you want to hide from a role or a user, you can setup permissions accordingly to do so. Please specify the requirement.
Perhaps not exactly what you need, but it's not really clear. You can hide items from regular (= non-admin) users by setting the checkbox Hidden as such, which can be found in the Appearance section of your item. When hidden, your items will be displayed in grey and italic in the item tree for administrators, and totally non-visible to users. Note that if you cannot find the section, you need to enable the Standard Fields under View in the ribbon.
Of course this field is also accessible via the API by any of these two means:
item.Appearance.Hidden = true; // Or false.
item[Sitecore.FieldIDs.Hidden] = "1"; // Or string.Empty.
Hide items from non admin users by using 'Hide Item' button in configure ribbon.
Protect items from non admin users by using 'Protect Item' button in configure ribbon.