Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulespermissionspermissions
Previous
 
Next
New Post
12/3/2010 8:01 AM
 
Hi, where can I find the code with sets the TAB permissions for a user in DNN?

I'm working on my own permission module,

it does the same as the tab permission does now, but instead of adding new user I've made a griewview in wich I can check/uncheck checkboxes with have vb.net code behind them wich sets the permissions for the user,

img on how it looks right now -> http://yfrog.com/n959532545p

Thnx alot!
 
New Post
12/3/2010 8:37 AM
 
sk

Please use DotNetNuke.Security.Permissions.TabPermissionController. It contains all required methods.

Sergey
 
New Post
12/3/2010 9:39 AM
 
Tank you sergey,

In realizing my project I could use some help,

as you know the permission in dotnetnuke are set as role - > view/ edit or you can add a user to a module/page/folder

I'm working on a module wich allows a user to have a special permission "set permissions for other users in his company"  as you can see in the preview : Preview of the module - http://yfrog.com/n959532545p

On the topleft side "gebruikers = Users" my module generates the users which  are generated through a ProfilePropertyDefinition called Company, then u see 5 more different headers "Random, Finance, Licence, Applications, Out of service"
Instead of having all the pages as headers I put them into groups, so the Header Random has 5 pages underneath him, Finance 2 ect.

When I check a checkbox underneath a user, I would want to add view permissions for the user wich I want to allow to have view permissions for one of the headers.

The thing I like to know is, how to start with it, I know it is possible but I hvnt seen any module with what I want a permission module to do, that the reason why I started to create my own



 
New Post
12/3/2010 1:49 PM
 
SK

As i understand you have Page Random and 5 child pages for it. And the same for another, is it correct?

If yes, then you should use DotNetNuke.Entities.Tabs.TabController.GetTabsByParentId(int) to receive all child Tabs from the page Random (for example). And then for each child page you can define permissions you need with DotNetNuke.Security.Permissions.TabPermissionController.AddTabPermission(DotNetNuke.Security.Permissions.TabPermissionInfo) or DotNetNuke.Security.Permissions.TabPermissionController.DeleteTabPermission(int) or DotNetNuke.Security.Permissions.TabPermissionController.UpdateTabPermission(DotNetNuke.Security.Permissions.TabPermissionInfo).

BTW: We have made good solution for your task. This is Pages Admin - Tabs Manager v.2.0.

Sergey
 
New Post
12/7/2010 8:55 AM
 
HI sergey,

I'm responding a bit late due the fact that I wasnt in for a few days.

if you look at the prewview http://yfrog.com/n959532545p


It's the same as the standard permissions for donetnuke atm, but then instead of Roles and only 2 options (view/edit)

headers :  users -  tabs
left side : users
middle checkboxes

I created a ProfilePropertyDefinition called company
the thing i'm working on is, I'm creating several users with different company names.

When one of them sign in he has the permission to see all the users with the same company name as he.
But he is also able to set the view pemissions for tabs troughout the checkboxes.

So when he selects a checkbox wich is underneath a tab, the user for wich he checks it gets granted permission to view the page, if its unchecked the permissions gets deleted.

Hope you get my question now,

I dont mind programming it myself, figuring out the permissions at the moment.




 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulespermissionspermissions


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out