Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post 
Post Problem With Sub-forums Group Permissions (simple Mode) 
 
I cannot change the access permission for sub-forums or independent forums, that is I only can change permissions for a forum which have a category as parent. To check it do the following using the "advanced management" option in the "forum" category of the ACP menu:

1) create a "category 1" category,
2) create  "forum 1" forum inside "category 1" with "private" set of permissions
3) create a "sub forum 1" inside "forum 1" with "private" permissions too

Now go to "groups"/"manage groups" and do the following:

4) create a "group 1" group
5) go to the "permissions" (simple mode) form for "group 1", change the access permissions for both "forum 1" and "sub forum 1" to "allowed access" and click submit
6) go again to the "permissions" form for "group 1" and you can see that only "forum 1" has retained the "allowed access" value while "sub forum 1" continues with "disallowed access"

Curiously this only happens if the parent forum ("forum 1" in this case") has been created by me. If I do all the above but instead of "forum 1" I use the "test forum 1" which is provided with the default IP installation (just changing it's permissions to "private") then the "sub forum 1" created inside it will accept the "allowed access" setting given to it in the step 5.

I reported this problem in the 1.2.0.27 bugs thread, but it passed along between all the others and I haven't got any clue on what can be causing the problem neither any confirmation of it by some other user.
 



 
hal9000Send private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: Problem With Sub-forums Group Permissions (simple Mode) 
 
Nobody has something to comment about this? At least confirm the problem...  

It's very annoying that when I need to change the group permissions for a sub-forum, I must take that sub-forum out of its parent so it becomes a first level forum (with a category as parent), then change the permissions, and finally move it again inside of its original parent forum.
 



 
hal9000Send private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Problem With Sub-forums Group Permissions (simple Mode) 
 
hal9000 wrote: [View Post]
Nobody has something to comment about this? At least confirm the problem...  

It's very annoying that when I need to change the group permissions for a sub-forum, I must take that sub-forum out of its parent so it becomes a first level forum (with a category as parent), then change the permissions, and finally move it again inside of its original parent forum.

Please be patient, I've been very busy in these days and I will be busy at least until this weekend.

If I have some time I will test this in the weekend, but I cannot assure that.

So far I have set up many boards even with different level of subforums / subcats but I never had this problem so far.

If you send me a backup of your clean setup I will try to verify on that.
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Problem With Sub-forums Group Permissions (simple Mode) 
 
Mighty Gorgon wrote: [View Post]
hal9000 wrote: [View Post]
Nobody has something to comment about this? At least confirm the problem...  

It's very annoying that when I need to change the group permissions for a sub-forum, I must take that sub-forum out of its parent so it becomes a first level forum (with a category as parent), then change the permissions, and finally move it again inside of its original parent forum.

Please be patient, I've been very busy in these days and I will be busy at least until this weekend.

If I have some time I will test this in the weekend, but I cannot assure that.

So far I have set up many boards even with different level of subforums / subcats but I never had this problem so far.

If you send me a backup of your clean setup I will try to verify on that.


Thanks, Luca. Don't get me wrong. I don't want to bother you or anybody. It was only the lack of at least the response from somebody with the same problem, so I was wondering if it's just me, although I tested with a clean installation on two different servers with the same result.

I'll send you a DB backup later. Thanks again.
 



 
hal9000Send private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Problem With Sub-forums Group Permissions (simple Mode) 
 
I can understand that having problems is frustrating sometimes.

As I said in the other topic I have personally tested this with no problems... but I may be doing something different from what you are doing.

In any case I will have further tests in the weekend.
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Problem With Sub-forums Group Permissions (simple Mode) 
 
This is the backup of a test forum with a forum without parent, a forum inside a category and a sub-forum inside the forum, all of them defined as private. As I explain in the first post, I can change the group permissions to allow the access to the forum inside the category, but not for the forum with no parent nor the sun-forum inside the forum.

Thanks again.

sub-forum_permissions - backup_1206476771_20080325_5f681aa2a1081a6a.sql.gz
Description:  
Download
Filename: sub-forum_permissions - backup_1206476771_20080325_5f681aa2a1081a6a.sql.gz
Filesize: 60.45 KB
Downloaded: 147 Time(s)

 



 
hal9000Send private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Problem With Sub-forums Group Permissions (simple Mode) 
 
Oops, I forgot to say that the table prefix is "nieblas_", the admin user is "morgana" and the password "123456".
 



 
hal9000Send private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Problem With Sub-forums Group Permissions (simple Mode) 
 
Hello Luca (I hope you read this).

Since you are rather busy I have been searching the bug by myself and I found it at last.

The problem is in this piece of code in "admin_ug_auth.php":

Code: [Download] [Hide]
  1.     $sql = "SELECT f.*  
  2.         FROM " . FORUMS_TABLE . " f, " . CATEGORIES_TABLE . " c  
  3.         WHERE f.cat_id = c.cat_id  
  4.         ORDER BY c.cat_order, f.forum_order ASC"; 

    
With this query you are leaving out any forum without parent, because its "cat_id" is 0 and there is not such category on categories table.

Yet more interesting  is the case of the forums with another forum as parent, since there is not a check of the "main_type" field to know whether the forum's parent is a category or another forum. That is, if a forum 5 is a sub-forum of a forum 3, it will only be returned by this query if casualty a category 3 exists, when the one which should exist is a forum 3 and not a category 3.

I rewrote this query to include what was  been left out and it worked:

Code: [Download] [Hide]
  1.     $sql = "(SELECT f.* FROM " . FORUMS_TABLE . " f  
  2.         WHERE f.cat_id = 0 AND f.main_type = 'c'  
  3.         ORDER BY f.forum_order ASC) UNION  
  4.     (SELECT f.* FROM " . FORUMS_TABLE . " f, " . CATEGORIES_TABLE . " c  
  5.         WHERE f.cat_id = c.cat_id AND f.main_type = 'c'  
  6.         ORDER BY c.cat_order, f.forum_order ASC) UNION  
  7.     (SELECT f.* FROM " . FORUMS_TABLE . " f, " . FORUMS_TABLE . " f2  
  8.         WHERE f.cat_id = f2.forum_id AND f.main_type = 'f'  
  9.         ORDER BY f2.forum_order, f.forum_order ASC)"; 

 



 
hal9000Send private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Problem With Sub-forums Group Permissions (simple Mode) 
 
Thanks Hal, this saved me. I've had a probelm with this since I downloaded the new update but didn't realize it today until I went to do a mass permission change on a bunch of users. Eek! I appreciate the help. :*) The manual way way easy enough for me. Hurrah!
 



 
lucentgemSend private messageVisit poster's website  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events