0 Locked out of person profile security tab 1 Michael Garrison posted 10 Years Ago I'm not quite sure how this happened- I'm actually pretty sure I didn't change any settings that should have had this result, but here goes. I was trying to create a new block on the person profile page, which kept information like alarm system codes, key id numbers, things of that nature. But of course I only want select users to be able to view that information. So I started by creating a "password viewers" security group. Then I created the attribute category, and assigned the specific text-type attributes to it. Finally it was ready- I went to a profile page, clicked "Zones" and added a "CRM > Person Detail/Attribute Values" page block to a previously empty zone (I think I mistakenly chose to create this under "all pages using PersonDetail layout"). After I refreshed the page, the zone showed up as empty, so I could click the block configuration button and add the attribute type to be displayed. Yay- so that worked. Then I clicked the "Security" button for that block and allowed "password viewers" to view, edit and administer the block, then BELOW that created another security entry denying view, edit and administer privelages to "all users". Again, success- when I was a part of the "password viewers" security group I could see the block. When I wasn't, I couldn't. Then I got to thinking- it would really be better if this information was on the "security" tab rather than on the "Extended attributes" tab- it will get seen accidentally less frequently there. So I deleted the blocks from the Extended Attributes tab. So far, so good. I went to the Security tab and, examining the layout, decided that I wanted my block to show up under security groups and logins. So I needed to move those two blocks out of C1 and up into a higher zone. I chose B2- I was going to make B3 the zone where my custom block lived. I clicked "Blocks" and chose to "Move" the two blocks (again selecting "all pages using the PersonDetail layout"- I realize now I thought that meant that was necessary to apply to more than this single user, but that it actually meant, for instance, "extended attributes" vs "security".) So now I had those two blocks on all my profile pages- extended attributes, person profile, AND security. Oops. So I created my custom block in "just this page" while looking at the security tab, in the correct zone. Cool. Then I chose to "Move" the Groups and Logins blocks back to "just this page". But once I did so, the "security" tab disappears entirely from the sub-navigation menu! All I can see are the Person Profile, Extended Attributes, Groups, Contributions, and History tabs. And upon manually navigating to /Person/1/StaffDetails, ROCK informs me that I don't have the permissions to view that page. Without being able to get to that page, I don't know how to check and see what security went wrong. Any idea how I can fix this issue?
Michael Garrison 10 years ago Thanks so much- I didn't clear the cache so I'll try that.FWIW, the results of the SQL select were revealing:Entity | Type Id | Entity Id | Action | Access2 | 176 | View | Deny | All Users
Michael Garrison 10 years ago Clearing the cache did not change anything (I also tried restarting the site and the SqlServer service). So I changed the rule identified in your SELECT above to "Allow" instead of "Deny" (confirmed by running the query again- this time it says "Allow All Users"), cleared the cache, restarted the site and SqlServer, still to no avail. I can't seem to get the security tab to be visible, and I find it odd that the record in question did not list a time or user who modified it. Maybe that's as it should be, but I'd have expected that if I made a change resulting in this behavior, it would have been recorded as an action of my user.It's still early enough in the deployment I could reinstall from scratch, if we don't want to waste time on this, but it makes me nervous that I don't think I did anything to change permissions on the page, and I don't want it to happen again... O=)
Michael Garrison 10 years ago Hold the phone, something worked this time. Before rolling back and signing out, I (in order) restarted the SqlServer service, restarted the site in IIS, cleared the cache in ROCK, and then (which I hadn't done before) actually restarted ROCK from the Info dialogue where you clear the cache. Viola, the tab is back! And when I go to it and hit security, there is the permission "Allow"ing "All Users" to view the page.I was still confused as to how that rule was set in the first place without any record of an edit. I think the answer was revealed to me upon a visit to the rocksolidchurchdemo site- the security tab DOES have that deny permission set, but UNDER a "Allow Rock Administrators (Role) view permissions" rule, which is missing on my installation. I don't know how it got deleted, but that explains the record-less apparent rule change. I'll re-create that rule and be back on track.Thanks, everyone, for your help!!
Rock RMS 10 years ago FYI, it also looks like cached security is not currently being cleared when you choose the 'Clear Cache' option. We already have a fix coming for that in the next update. Until then, you would need to restart app if you change security outside of Rock's UI.