Umbraco Package Action: Give all Users access to custom section - umbraco7

Hi I am building a new package and I want to give all users access to the new section automatically when the package is being installed.
I have found the GrantPermissionForApp class action in the "PackageActionsContrib" project, but the injected SQL is targeting tables that now do not exist.
Umbraco now sets section permissions on group Membership not at the user level, hence the SQL table "umbracoUser2app" doesn't exist.
Has anyone modded the GrantPermissionForApp class to account to the Umbraco changes or could advise what tables I need to mod in SQL?
Many thanks.

Related

Type of catalog object selection not available when creating report from Oracle Catalog Manager

When trying to create a report for the catalog objects in OBIEE (12c) through the Catalog Manager tool, it is supposed to give me the type of object I want to create the report for. But for me that selection is not coming at all. In some forums it is mentioned that run the catalog manager not through the shortcut but through the runcat.cmd file in Oracle_Home/bi/bitools/bin directory, but even that didn't help.Here's what I am seeing:
And here's what I am supposed to see:
Any insights would be appreciated.Thanks

phpMyAdmin has two database tables under one heading

I am in the process of moving my local website onto a live webhost and am having some confusion while exporting my database tables from phpMyAdmin.
I attached a screenshot for reference.
It seems as if there are two database tables that are being used for my website, I'm not sure how this happened though. What I am trying to figure out is which database table is the one that I need to export along with all my Joomla files?
I went into my htdocs to check the configuration.php file and it says that the database prefix is xxx (i made this up) BUT when I go look into that database table (on phpMyAdmin) the dates of creation don't match up but are current in the "other database table."
Thank you for your help.
Screenshot for reference
To ascertain which is the correct database, create a new user via the Joomla interface, then have a look at the users Joomla table via phpMyAdmin, in both databases, to see in which database the user got created.
This information can be found in your site's admin at Site => Global Configuration => Server

On live server how can i create aspnet_roles

I posted my asp.net website on MVC3 live on godaddy server. How can i create admin role and add users to it? Is there an easy way to do this? Even if through sqlserver please respond with some level of code to understand better. Thanks!
Create it in your local database and push that up to your site in app_data.
You should be able to click the small icon at the top of solution explorer to admin your site and create the roles. No code required.
If you have already populated SQL database by copying the database to GoDaddy Server, you can use these stored procedures already present in it.
To create an admin role
EXEC #return_value = [dbo].[aspnet_Roles_CreateRole]
#ApplicationName = N'/',
#RoleName = N'admin'
To add users to the role execute the stored procedure aspnet_UsersInRoles_AddUsersToRoles. Please be sure to create the user by executing aspnet_Users_CreateUser if there ain't already a user.

Joomla 1.5 - Creating SQL tables in components

Joomla 1.5 has JTable, which can be extended to act as an Active Record system (Create/Read/Update/Delete).
However, I can not find any way for this interface to create the table represented by my JTable sub-class.
Every example I have found has started with "manually create the database tables... ", then created a JTable class to work with it. I would like to be able to distribute my plugin and have it create the tables on setup, so that this is not necessary.
Any easy way to do this?
This is usually done in the install.sql of your extension (The link is related to component but I guess for plugins it's the same).

sugarcrm users insert in magento

Hi I have a sugarcrm instance and magento instance they two are separate
i mean they have different databases. My requirement is when i create a user in the sugarcrm ,it should also insert the admin users in magento How can i do that in sugar,where the code has to be executed in sugar. Any other way is a
I would have to do some research on the Magento API, but in Sugar, you would want to create a logic hook in the Users module that triggers 'after_save'. You would point it to a custom class/method you've created that would use Magento's API for creating a new user.
You will need to use logic hooks and "after_save" will work for you. So add a logic in after_save. Write you code in simple PHP which will get data from Sugar bean fields and will create Magento user accordingly. Read this link for logic hook: http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_7.9/Architecture/Logic_Hooks/#Module_Hooks

Resources