don't show the backup link if the user can't backup
This commit is contained in:
		| @@ -454,11 +454,15 @@ class ProfilesettingsAction extends AccountSettingsAction | |||||||
|     } |     } | ||||||
|  |  | ||||||
|     function showAside() { |     function showAside() { | ||||||
|  |         $user = common_current_user(); | ||||||
|  |  | ||||||
|         $this->elementStart('div', array('id' => 'aside_primary', |         $this->elementStart('div', array('id' => 'aside_primary', | ||||||
|                                          'class' => 'aside')); |                                          'class' => 'aside')); | ||||||
|  |         if ($user->hasRight(Right::BACKUPACCOUNT)) { | ||||||
|             $this->element('a', |             $this->element('a', | ||||||
|                            array('href' => common_local_url('backupaccount')), |                            array('href' => common_local_url('backupaccount')), | ||||||
|                            _('Backup account')); |                            _('Backup account')); | ||||||
|  |         } | ||||||
|         $this->elementEnd('div'); |         $this->elementEnd('div'); | ||||||
|     } |     } | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user