collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 435
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

Welcome to SimplePortal.net! You can download SimplePortal from the Downloads Area!

Author Topic: Permission settings  (Read 7036 times)

0 Members and 1 Guest are viewing this topic.

Offline Manu

  • Translator
  • *
  • Posts: 203
  • Gender: Female
  • Angel by Day, Devil by Night
    • Arsenie Official Forum
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Permission settings
« on: October 17, 2008, 05:31:42 PM »
Hi,

could be I'm blind, but I don't think so.

I gave a member group in our forum the permission to moderate the Portal, but the member
who is in the group can't enter the Admin panel.
I thought when I give this member group the permission to moderate the Portal the member will be able to see the link "Administrator" link in our upper link list.
I tested the member group with my test account and I can't see somewhere a link to enter the Portal Administration.

Do I search at the wrong place?
Sometimes I'm an angel, sometimes I'm a devil, but I am always 100% woman and if you have a problem with me, learn to deal with it!

Offline Manu

  • Translator
  • *
  • Posts: 203
  • Gender: Female
  • Angel by Day, Devil by Night
    • Arsenie Official Forum
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: Permission settings
« Reply #1 on: October 19, 2008, 08:43:34 AM »
It's very important for us to get a solution for the problem.
Can't help anyone?
Sometimes I'm an angel, sometimes I'm a devil, but I am always 100% woman and if you have a problem with me, learn to deal with it!

Offline ???1031

  • ... feel not as a dev at the moment ...
  • Comrade
  • *
  • Posts: 789
  • Gender: Male
  • Overworked <<
  • SMF Version: None
  • SP Version: None
Re: Permission settings
« Reply #2 on: October 20, 2008, 12:49:18 AM »
I must look at it, i thought it will be work automatic if the premission is set.

Bye
DIN1031
Again... I'm having time problems...Normal Monday to Friday I'm at office from 6:00-16:00 (On my local time ;P).

Offline Manu

  • Translator
  • *
  • Posts: 203
  • Gender: Female
  • Angel by Day, Devil by Night
    • Arsenie Official Forum
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: Permission settings
« Reply #3 on: October 20, 2008, 12:03:20 PM »
That's what I thought too, but as it seems it doesn't.
I gave the member group the permission to edit the news in the forum,
cause I thought in this way this member group will be able to enter the admin
panel.
I checked it, the link to the admin section is to see in the upper link list, but
when the member has enter the admin section, he/she won't find the link
"SimplePortal Admin" all they can see you can see at the attachment photo.
Sometimes I'm an angel, sometimes I'm a devil, but I am always 100% woman and if you have a problem with me, learn to deal with it!

Offline Manu

  • Translator
  • *
  • Posts: 203
  • Gender: Female
  • Angel by Day, Devil by Night
    • Arsenie Official Forum
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: Permission settings
« Reply #4 on: October 28, 2008, 11:02:10 AM »
I won't bother, but is there a solution for our problem, cause it's very important
for our forum to get a solution for the problem.  :-[
Sometimes I'm an angel, sometimes I'm a devil, but I am always 100% woman and if you have a problem with me, learn to deal with it!

Offline ???1031

  • ... feel not as a dev at the moment ...
  • Comrade
  • *
  • Posts: 789
  • Gender: Male
  • Overworked <<
  • SMF Version: None
  • SP Version: None
Re: Permission settings
« Reply #5 on: October 29, 2008, 07:00:59 AM »
sorry i total forgot it <<... lately i forgot to many things...

So i think you select 'Moderate portal' as premission? :)

I think follow this will solve the problem:

Replace in the Subs.php
Code: [Select]
if (allowedTo('moderate_forum'))
$context['admin_areas']['sportal']['areas']['sportal'] = '<a href="' . $scripturl . '?action=spadmin">' . $txt['sp-adminTitle'] . '</a>';

with
Code: [Select]
if (allowedTo('sp_moderate'))
$context['admin_areas']['sportal']['areas']['sportal'] = '<a href="' . $scripturl . '?action=spadmin">' . $txt['sp-adminTitle'] . '</a>';
else
unset($context['admin_areas']['sportal']);

But i'm not sure that the script work ;). It's currently untested.

I forgot there is a possible secure problem in it... because the user can create now php blocks, and i think this should not possible so i think this is not the best way to change this. (I'm not sure.)

Bye
DIN1031
« Last Edit: October 29, 2008, 07:19:24 AM by ???1031 »
Again... I'm having time problems...Normal Monday to Friday I'm at office from 6:00-16:00 (On my local time ;P).

Offline Manu

  • Translator
  • *
  • Posts: 203
  • Gender: Female
  • Angel by Day, Devil by Night
    • Arsenie Official Forum
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: Permission settings
« Reply #6 on: October 29, 2008, 09:52:07 AM »
sorry i total forgot it <<... lately i forgot to many things...

But i'm not sure that the script work ;). It's currently untested.

I forgot there is a possible secure problem in it... because the user can create now php blocks, and i think this should not possible so i think this is not the best way to change this. (I'm not sure.)

Bye
DIN1031
You aren't alone with forgetting things, I forgot it too, but the member who should get the permission was asking for the solution of our problem. ;)

It works, but not as it should be.
I changed the code you showed, but the link to the admin section in the menu wasn't to see. The link was only to see after I gave the member group the permission to edit the news.

It isn't that big problem when they can create blocks, as long as I still have the option to delete the blocks. ;)
Sometimes I'm an angel, sometimes I'm a devil, but I am always 100% woman and if you have a problem with me, learn to deal with it!

Offline ???1031

  • ... feel not as a dev at the moment ...
  • Comrade
  • *
  • Posts: 789
  • Gender: Male
  • Overworked <<
  • SMF Version: None
  • SP Version: None
Re: Permission settings
« Reply #7 on: October 29, 2008, 10:06:42 AM »
But with that they can easy gain admin access ;).

But i look deeper into it, because there are some more problems with the premissions oO.

Bye
DIN1031
Again... I'm having time problems...Normal Monday to Friday I'm at office from 6:00-16:00 (On my local time ;P).

Offline asude

  • Jr. Member
  • **
  • Posts: 54
  • Gender: Female
Re: Permission settings
« Reply #8 on: November 01, 2008, 08:10:56 AM »
that's not a permission problem.

Admin.php

Code: [Select]
isAllowedTo(array('admin_forum', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_boards', 'manage_smileys', 'manage_attachments'));
Code: [Select]
$context['allow_admin'] = allowedTo(array('admin_forum', 'manage_boards', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_attachments', 'manage_smileys'));
add your mod's permissions to the arrays above.

if you don't trust someone, just don't give the permission.

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Permission settings
« Reply #9 on: November 10, 2008, 06:48:21 AM »
Did the suggestion above solved your problem?

Might be a good idea to move the Bugs board.
And slowly, you come to realize... It's all as it should be...

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Permission settings
« Reply #10 on: November 13, 2008, 07:11:10 PM »
Moved to the Bugs Board.

We should have a look at the permissions before the next release. ;)
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Permission settings
« Reply #11 on: November 26, 2008, 07:27:01 AM »
This is fixed.
And slowly, you come to realize... It's all as it should be...